univention.management.console.modules.setup.netconf.modules package

Contents

univention.management.console.modules.setup.netconf.modules package#

Univention Setup: network configuration abstract base classes

class univention.management.console.modules.setup.netconf.modules.RunPhases[source]#

Bases: object

Handle modules for network configuration. <http://lkubuntu.wordpress.com/2012/10/02/writing-a-python-plugin-api/>

load() None[source]#
add(name: str, obj: Any) None[source]#
setup(changeset: ChangeSet) None[source]#
pre() None[source]#
post() None[source]#

Submodules#

univention.management.console.modules.setup.netconf.modules.FlushOldAddresses module#

class univention.management.console.modules.setup.netconf.modules.FlushOldAddresses.PhaseFlushOldAddresses(changeset: ChangeSet)[source]#

Bases: Phase

Flush old interfaces to remove old addresses.

priority = 55#
pre() None[source]#

Called before the changes are applied to UCR.

univention.management.console.modules.setup.netconf.modules.KernelModules module#

class univention.management.console.modules.setup.netconf.modules.KernelModules.PhaseKernelModules(changeset: ChangeSet)[source]#

Bases: Executable

(Un-)load kernel modules for VLAN, Bridging, Bonding.

variable_name = 'kernel/modules'#
variable_separator = ';'#
module_option = (('8021q', 'vlan-raw-device'), ('bridge', 'bridge_ports'), ('bonding', 'bond-slaves'))#
priority = 95#
executable = '/sbin/modprobe'#
pre() None[source]#

Called before the changes are applied to UCR.

get_configured_modules() set[str][source]#
clean_known_modules(modules: set[str]) None[source]#
scan_required_modules() set[str][source]#
set_configured_modules(modules: set[str]) None[source]#
load_modules(modules: set[str]) None[source]#

univention.management.console.modules.setup.netconf.modules.LdapDhcp module#

class univention.management.console.modules.setup.netconf.modules.LdapDhcp.PhaseLdapDhcp(changeset: ChangeSet)[source]#

Bases: LdapChange

Re-create DHCP subnet.

priority = 48#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.LdapDns module#

class univention.management.console.modules.setup.netconf.modules.LdapDns.PhaseLdapDns(changeset: ChangeSet)[source]#

Bases: AddressMap, Ldap, Executable

Create reverse DNS zones and add pointer records for host.

priority = 46#
executable = '/usr/share/univention-directory-manager-tools/univention-dnsedit'#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.LdapNetwork module#

class univention.management.console.modules.setup.netconf.modules.LdapNetwork.PhaseLdapNetwork(changeset: ChangeSet)[source]#

Bases: LdapChange

Rewrite default network. This must run after LdapDhcp[48], which might created the new DHCP subnet. This must run after LdapDns[44], which might created the new reverse DNS zone.

priority = 44#
check() None[source]#

Check if the phase should be activated. Throw SkipPhase to skip this phase.

post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.LdapReferences module#

class univention.management.console.modules.setup.netconf.modules.LdapReferences.PhaseLdapReferences(changeset: ChangeSet)[source]#

Bases: AddressMap, LdapChange

Rewrite IP configuration in LDAP object.

priority = 42#
referers = (('policies/ldapserver', 'ldapServer', 1), ('policies/dhcp_boot', 'boot_server', 1), ('policies/dhcp_dns', 'domain_name_servers', 1), ('policies/dhcp_netbios', 'netbios_name_servers', 1), ('policies/dhcp_routing', 'routers', 1), ('policies/printserver', 'printServer', 1), ('policies/repositoryserver', 'repositoryServer', 1), ('shares/share', 'host', 1), ('shares/printer', 'spoolHost', 1), ('dns/forward_zone', 'a', 1), ('portals/entry', 'link', 2))#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.LdapSSO module#

class univention.management.console.modules.setup.netconf.modules.LdapSSO.PhaseLdapSSO(changeset: ChangeSet)[source]#

Bases: AddressMap, LdapChange

Rewrite UCS SSO host address.

priority = 49#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.LdapSamba module#

class univention.management.console.modules.setup.netconf.modules.LdapSamba.PhaseLdapSamba(changeset: ChangeSet)[source]#

Bases: AddressMap, LdapChange

Rewrite Samba gc._msdcs host address.

priority = 44#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.LdapSelf module#

class univention.management.console.modules.setup.netconf.modules.LdapSelf.PhaseLdapSelf(changeset: ChangeSet)[source]#

Bases: AddressMap, LdapChange, Executable

Rewrite IP configuration in self LDAP object.

priority = 40#
executable = '/usr/share/univention-directory-manager-tools/univention-dnsedit'#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.ResolvConf module#

class univention.management.console.modules.setup.netconf.modules.ResolvConf.PhaseResolvConv(changeset: ChangeSet)[source]#

Bases: Dhcp

Commit /etc/resolv.conf if no more DHCP is used.

priority = 75#
check() None[source]#

Check if the phase should be activated. Throw SkipPhase to skip this phase.

post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.RestartAllInterfaces module#

class univention.management.console.modules.setup.netconf.modules.RestartAllInterfaces.PhaseRestartAllInterfaces(changeset: ChangeSet)[source]#

Bases: Phase

Stop and restart all interfaces.

priority = 50#
pre() None[source]#

Called before the changes are applied to UCR.

post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.RestartBind module#

class univention.management.console.modules.setup.netconf.modules.RestartBind.PhaseRestartBind(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

Stop the DNS server, remove the cache, restart.

service = 'named'#
priority = 24#
post() None[source]#

Called after the changes have been applied to UCR.

univention.management.console.modules.setup.netconf.modules.RestartCups module#

class univention.management.console.modules.setup.netconf.modules.RestartCups.PhaseRestartCups(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'cupsys'#
priority = 14#

univention.management.console.modules.setup.netconf.modules.RestartDhcp module#

class univention.management.console.modules.setup.netconf.modules.RestartDhcp.PhaseRestartDhcp(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'isc-dhcp-server'#
priority = 26#

univention.management.console.modules.setup.netconf.modules.RestartKerberos module#

class univention.management.console.modules.setup.netconf.modules.RestartKerberos.PhaseRestartKerberos(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'heimdal-kdc'#
priority = 28#

univention.management.console.modules.setup.netconf.modules.RestartListener module#

class univention.management.console.modules.setup.netconf.modules.RestartListener.PhaseRestartListener(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'univention-directory-listener'#
priority = 22#

univention.management.console.modules.setup.netconf.modules.RestartNscd module#

class univention.management.console.modules.setup.netconf.modules.RestartNscd.PhaseRestartNscd(changeset: ChangeSet)[source]#

Bases: RestartService

service = 'nscd'#
priority = 18#

univention.management.console.modules.setup.netconf.modules.RestartPostgresql module#

class univention.management.console.modules.setup.netconf.modules.RestartPostgresql.PhaseRestartPostgresql(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'postgresql'#
priority = 16#

univention.management.console.modules.setup.netconf.modules.RestartSamba module#

class univention.management.console.modules.setup.netconf.modules.RestartSamba.PhaseRestartSamba(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'samba'#
priority = 30#

univention.management.console.modules.setup.netconf.modules.RestartSamba4 module#

class univention.management.console.modules.setup.netconf.modules.RestartSamba4.PhaseRestartSamba4(changeset: ChangeSet)[source]#

Bases: RestartService, NotNetworkOnly

service = 'samba-ad-dc'#
priority = 30#

univention.management.console.modules.setup.netconf.modules.RewritePxe module#

class univention.management.console.modules.setup.netconf.modules.RewritePxe.Mapping(ipv4_changes: dict[IPv4Interface, IPv4Interface])[source]#

Bases: object

apply(string: str) str[source]#
class univention.management.console.modules.setup.netconf.modules.RewritePxe.PhaseRewritePxe(changeset: ChangeSet)[source]#

Bases: AddressMap

Rewrite IP configuration of PXE boot.

priority = 95#
dirname = '/var/lib/univention-client-boot/pxelinux.cfg'#
check() None[source]#

Check if the phase should be activated. Throw SkipPhase to skip this phase.

pre() None[source]#

Called before the changes are applied to UCR.

univention.management.console.modules.setup.netconf.modules.RewriteUcr module#

class univention.management.console.modules.setup.netconf.modules.RewriteUcr.PhaseRewriteUcr(changeset: ChangeSet)[source]#

Bases: AddressMap

Rewrite IP configuration stored in UCR.

variables = ('nameserver1', 'nameserver2', 'nameserver3', 'dns/forwarder1', 'dns/forwarder2', 'dns/forwarder3', 'ldap/server/ip')#
priority = 95#
check() None[source]#

Check if the phase should be activated. Throw SkipPhase to skip this phase.

pre() None[source]#

Called before the changes are applied to UCR.

univention.management.console.modules.setup.netconf.modules.RewriteWins module#

class univention.management.console.modules.setup.netconf.modules.RewriteWins.PhaseRewriteWins(changeset: ChangeSet)[source]#

Bases: AddressMap

Rewrite IP configuration stored in wins.dat.

priority = 95#
filename = '/var/lib/samba/wins.dat'#
check() None[source]#

Check if the phase should be activated. Throw SkipPhase to skip this phase.

pre() None[source]#

Called before the changes are applied to UCR.

univention.management.console.modules.setup.netconf.modules.SaveOldApplianceAddress module#

class univention.management.console.modules.setup.netconf.modules.SaveOldApplianceAddress.PhaseSaveOldApplianceAddress(changeset: ChangeSet)[source]#

Bases: AddressChange

Save old IP address in dummy interface to not dis-connect the UMC connection.

priority = 1#
check() None[source]#

Check if the phase should be activated. Throw SkipPhase to skip this phase.

pre() None[source]#

Called before the changes are applied to UCR.

rewrite(name: str, iface: dict[str, str]) None[source]#
find_next_interface(base: str) str[source]#