Exemplo n.º 1
0
class HADES_RADIUS_LISTEN(Option):
    """
    Sequence of IPs and networks the RADIUS server is listening on.
    """
    default = (netaddr.IPNetwork('10.66.68.10/24'), )
    type = collections.abc.Sequence
    static_check = check.satisfy_all(check.not_empty,
                                     check.sequence(check.network_ip))
    runtime_check = check.sequence(check.address_exists)
Exemplo n.º 2
0
class HADES_USER_NETWORKS(Option):
    """
    Public networks of authenticated users.

    Dictionary of networks. Keys are unique identifiers of the network,
    values are :class:`netaddr.IPNetwork` objects
    """
    type = collections.abc.Mapping
    required = True
    static_check = check.satisfy_all(
        check.not_empty, check.mapping(value_check=check.network_ip))
Exemplo n.º 3
0
class HADES_UNAUTH_LISTEN(Option):
    """
    Sequence of IPs and networks to listen for unauthenticated users.

    The first IP in the sequence will be the main IP, e.g. it will be advertised
    as IP of DNS server in DHCP responses.
    """
    default = (netaddr.IPNetwork('10.66.0.1/19'), )
    type = collections.abc.Sequence
    static_check = check.satisfy_all(check.not_empty,
                                     check.sequence(check.network_ip))
    runtime_check = check.sequence(check.address_exists)
Exemplo n.º 4
0
class HADES_MAIL_DESTINATION_ADDRESSES(Option):
    """Automatic notification mails will be send to this address."""
    type = collections.abc.Sequence
    static_check = check.satisfy_all(check.not_empty,
                                     check.sequence(check.type_is(str)))