Esempio n. 1
0
    def _aa_slp_directory_agent(self):
        """
        The slp-directory-agent option

            option slp-directory-agent 123.123.123.123, ..., 124.124.124.124;

            This option specifies two things: the IP addresses of one or more
            Service Location Protocol Directory Agents, and whether the use of
            these addresses is mandatory. If the initial boolean value is true,
            the SLP agent should just use the IP addresses given. If the value
            is false, the SLP agent may additionally do active or passive
            multicast discovery of SLP agents (see RFC2165 for details).

            Please note that in this option and the slp-service-scope option,
            the term "SLP Agent" is being used to refer to a Service Location
            Protocol agent running on a machine that is being configured using
            the DHCP protocol.

            Also, please be aware that some companies may refer to SLP as NDS.
            If you have an NDS directory agent whose address you need to
            configure, the slp-directory-agent option should work.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The time-servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 2
0
    def _aa_slp_directory_agent(self):
        """
        The slp-directory-agent option

            option slp-directory-agent 123.123.123.123, ..., 124.124.124.124;

            This option specifies two things: the IP addresses of one or more
            Service Location Protocol Directory Agents, and whether the use of
            these addresses is mandatory. If the initial boolean value is true,
            the SLP agent should just use the IP addresses given. If the value
            is false, the SLP agent may additionally do active or passive
            multicast discovery of SLP agents (see RFC2165 for details).

            Please note that in this option and the slp-service-scope option,
            the term "SLP Agent" is being used to refer to a Service Location
            Protocol agent running on a machine that is being configured using
            the DHCP protocol.

            Also, please be aware that some companies may refer to SLP as NDS.
            If you have an NDS directory agent whose address you need to
            configure, the slp-directory-agent option should work.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The time-servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 3
0
 def _aa_dns_servers(self):
     """A list of DNS servers for this network."""
     self.is_statement = False
     self.is_option = False
     val = self._get_value()
     #TODO handle different ip types for key value ip lists
     if not is_ip_list(val):
         raise ValidationError("{0} is not a valid "
                               "list of name servers".format(val))
Esempio n. 4
0
 def _aa_dns_servers(self):
     """A list of DNS servers for this network."""
     self.is_statement = False
     self.is_option = False
     val = self._get_value()
     #TODO handle different ip types for key value ip lists
     if not is_ip_list(val):
         raise ValidationError("{0} is not a valid "
                               "list of name servers".format(val))
Esempio n. 5
0
    def _aa_ntp_servers(self):
        """
        option ntp-servers ip-address [, ip-address... ];

            This option specifies a list of IP addresses indicating NTP (RFC
            1035) servers available to the client. Servers should be listed in
            order of preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The ntp servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 6
0
    def _aa_routers(self):
        """
        option routers ip-address [, ip-address... ];

            The routers option specifies a list of IP addresses for routers on
            the client's subnet. Routers should be listed in order of
            preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The router options {0} "
                                  "is not a valid ip list".format(val))
Esempio n. 7
0
    def _aa_ntp_servers(self):
        """
        option ntp-servers ip-address [, ip-address... ];

            This option specifies a list of IP addresses indicating NTP (RFC
            1035) servers available to the client. Servers should be listed in
            order of preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The ntp servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 8
0
    def _aa_domain_name_servers(self):
        """
        option domain-name-servers ip-address [, ip-address... ];

            The domain-name-servers option specifies a list of Domain Name
            System (STD 13, RFC 1035) name servers available to the client.
            Servers should be listed in order of preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The DNS servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 9
0
    def _aa_domain_name_servers(self):
        """
        option domain-name-servers ip-address [, ip-address... ];

            The domain-name-servers option specifies a list of Domain Name
            System (STD 13, RFC 1035) name servers available to the client.
            Servers should be listed in order of preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The DNS servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 10
0
    def _aa_routers(self):
        """
        option routers ip-address [, ip-address... ];

            The routers option specifies a list of IP addresses for routers on
            the client's subnet. Routers should be listed in order of
            preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The router options {0} "
                                  "is not a valid ip list".format(val))
Esempio n. 11
0
    def _aa_finger_server(self):
        """
        The finger-server option

            option finger-server ip-address [, ip-address... ];

            The Finger server option specifies a list of Finger available to
            the client. Servers should be listed in order of preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        #TODO handle different ip types for key value ip lists
        if not is_ip_list(val):
            raise ValidationError("{0} is not a valid "
                                  "list of finger servers".format(val))
Esempio n. 12
0
    def _aa_log_servers(self):
        """
        The log-servers option

            option log-servers 123.123.123.123, ..., 124.124.124.124;

            The log-server option specifies a list of MIT-LCS UDP log servers
            available to the client. Servers should be listed in order of
            reference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The time-servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 13
0
    def _aa_log_servers(self):
        """
        The log-servers option

            option log-servers 123.123.123.123, ..., 124.124.124.124;

            The log-server option specifies a list of MIT-LCS UDP log servers
            available to the client. Servers should be listed in order of
            reference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The time-servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 14
0
    def _aa_finger_server(self):
        """
        The finger-server option

            option finger-server ip-address [, ip-address... ];

            The Finger server option specifies a list of Finger available to
            the client. Servers should be listed in order of preference.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        #TODO handle different ip types for key value ip lists
        if not is_ip_list(val):
            raise ValidationError("{0} is not a valid "
                                  "list of finger servers".format(val))
Esempio n. 15
0
    def _aa_cookie_servers(self):
        """
        The cookie server

            option cookie-servers ip-address [, ip-address... ];

            The cookie server option specifies a list of RFC 865 cookie servers
            available to the client. Servers should be listed in order of
            preference.
        """
        self.is_option = True
        self.is_statement = True
        self.has_validator = True
        val = self._get_value()
        #TODO handle different ip types for key value ip lists
        if not is_ip_list(val):
            raise ValidationError("{0} is not a valid "
                                  "list of name servers".format(val))
Esempio n. 16
0
    def _aa_cookie_servers(self):
        """
        The cookie server

            option cookie-servers ip-address [, ip-address... ];

            The cookie server option specifies a list of RFC 865 cookie servers
            available to the client. Servers should be listed in order of
            preference.
        """
        self.is_option = True
        self.is_statement = True
        self.has_validator = True
        val = self._get_value()
        #TODO handle different ip types for key value ip lists
        if not is_ip_list(val):
            raise ValidationError("{0} is not a valid "
                                  "list of name servers".format(val))
Esempio n. 17
0
    def _aa_netbios_name_servers(self):
        """
        The netbios-name-servers option

            option netbios-name-servers 123.123.123.123, ... , 124.124.124.124;

            The NetBIOS name server (NBNS) option specifies a list of
            RFC 1001/1002 NBNS name servers listed in order of preference.
            NetBIOS Name Service is currently more commonly referred to as
            WINS. WINS servers can be specified using the netbios-name-servers
            option.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The netbios-name-servers options {0} "
                                  "are not a valid ip list".format(val))
Esempio n. 18
0
    def _aa_netbios_name_servers(self):
        """
        The netbios-name-servers option

            option netbios-name-servers 123.123.123.123, ... , 124.124.124.124;

            The NetBIOS name server (NBNS) option specifies a list of
            RFC 1001/1002 NBNS name servers listed in order of preference.
            NetBIOS Name Service is currently more commonly referred to as
            WINS. WINS servers can be specified using the netbios-name-servers
            option.
        """
        self.is_option = True
        self.is_statement = False
        self.has_validator = True
        val = self._get_value()
        if not is_ip_list(val):
            raise ValidationError("The netbios-name-servers options {0} "
                                  "are not a valid ip list".format(val))