univention.admin.handlers.dhcp package

Submodules

univention.admin.handlers.dhcp.dhcp module

UDM for all DHCP objects

class univention.admin.handlers.dhcp.dhcp.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.simpleLdap

module = 'dhcp/dhcp'
univention.admin.handlers.dhcp.dhcp.lookup(co, lo, filter_s, base='', superordinate=None, scope='sub', unique=False, required=False, timeout=- 1, sizelimit=0)[source]
univention.admin.handlers.dhcp.dhcp.identify(dn, attr, canonical=False)[source]

univention.admin.handlers.dhcp.host module

UDM module for DHCP hosts

univention.admin.handlers.dhcp.host.unmapHWAddress(old, encoding=())[source]
univention.admin.handlers.dhcp.host.mapHWAddress(old, encoding=())[source]
class univention.admin.handlers.dhcp.host.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBase

module = 'dhcp/host'

univention.admin.handlers.dhcp.pool module

UDM module for the DHCP pool

class univention.admin.handlers.dhcp.pool.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBase

module = 'dhcp/pool'
permits_udm2dhcp = {'all_clients': 'all clients', 'dynamic_bootp_clients': 'dynamic bootp clients', 'known_clients': 'known clients', 'unknown_clients': 'unknown clients'}
permits_dhcp2udm = {'all clients': 'all_clients', 'dynamic bootp clients': 'dynamic_bootp_clients', 'known clients': 'known_clients', 'unknown clients': 'unknown_clients'}
open()[source]

Opens this object.

During the initialization of this object the current set LDAP attributes are mapped into info. This method makes it possible to e.g. resolve external references to other objects which are not represented in the raw LDAP attributes of this object, for example the group memberships of a user.

By default only the open hook for extended attributes is called. This method can be subclassed.

Warning

If this method changes anything in self.info it must call save() afterwards.

Warning

If your are going to do any modifications (such as creating, modifying, moving, removing this object) this method must be called directly after the constructor and before modifying any property.

ready()[source]

Makes sure all preconditions are met before creating or modifying this object.

It checks if all properties marked required are set. It checks if the superordinate is valid.

Returns

True

Return type

bool

Raises

univention.admin.uexceptions.insufficientInformation

classmethod rewrite_filter(filter, mapping)[source]

univention.admin.handlers.dhcp.server module

UDM module for DHCP servers

class univention.admin.handlers.dhcp.server.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBase

module = 'dhcp/server'
classmethod lookup_filter_superordinate(filter, superordinate)[source]

univention.admin.handlers.dhcp.service module

UDM module for DHCP services

class univention.admin.handlers.dhcp.service.object(co, lo, position, dn='', superordinate=None, attributes=[])[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBase

module = 'dhcp/service'
static unmapped_lookup_filter()[source]

Return a LDAP filter UDM filter expression.

Returns

A LDAP filter expression.

Return type

univention.admin.filter.conjunction

See lookup_filter().

univention.admin.handlers.dhcp.service.identify(dn, attr)[source]

univention.admin.handlers.dhcp.shared module

UDM module for the DHCP shared networks

class univention.admin.handlers.dhcp.shared.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBase

module = 'dhcp/shared'

univention.admin.handlers.dhcp.sharedsubnet module

UDM module for DHCP shared subnets

class univention.admin.handlers.dhcp.sharedsubnet.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBaseSubnet

module = 'dhcp/sharedsubnet'

univention.admin.handlers.dhcp.subnet module

UDM module for DHCP subnets

class univention.admin.handlers.dhcp.subnet.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]

Bases: univention.admin.handlers.dhcp.__common.DHCPBaseSubnet

module = 'dhcp/subnet'
static unmapped_lookup_filter()[source]

Return a LDAP filter UDM filter expression.

Returns

A LDAP filter expression.

Return type

univention.admin.filter.conjunction

See lookup_filter().

univention.admin.handlers.dhcp.subnet.identify(dn, attr)[source]