Ejemplo n.º 1
0
 def testrejectdyndnsfqdn(self):
     # The FQDN exists and is used for dynamic DHCP
     ip = self.net["dyndhcp0"].usable[2]
     command = ["add", "interface", "address", "--machine", "ut3c5n2",
                "--interface", "eth1", "--label", "e3",
                "--fqdn", dynname(ip)]
     out = self.badrequesttest(command)
     self.matchoutput(out, "Address %s [%s] is reserved for dynamic DHCP." %
                      (dynname(ip), ip), command)
Ejemplo n.º 2
0
 def testrejectdyndnsfqdn(self):
     # The FQDN exists and is used for dynamic DHCP
     ip = self.net.tor_net2[0].usable[2]
     command = [
         "add", "interface", "address", "--machine", "ut3c5n2",
         "--interface", "eth1", "--label", "e3", "--fqdn",
         dynname(ip)
     ]
     out = self.badrequesttest(command)
     self.matchoutput(
         out, "Address %s [%s] is reserved for dynamic DHCP." %
         (dynname(ip), ip), command)
Ejemplo n.º 3
0
 def testrejectdyndns(self):
     # The FQDN does not exist yet, but the IP is used for dynamic DHCP
     ip = self.net["dyndhcp0"].usable[2]
     command = ["add", "interface", "address", "--machine", "ut3c5n2",
                "--interface", "eth1", "--label", "e3",
                "--fqdn", "dyndhcp.aqd-unittest.ms.com", "--ip", ip]
     out = self.badrequesttest(command)
     self.matchoutput(out, "Address %s [%s] is reserved for dynamic DHCP." %
                      (dynname(ip), ip), command)
Ejemplo n.º 4
0
 def testrejectdyndns(self):
     # The FQDN does not exist yet, but the IP is used for dynamic DHCP
     ip = self.net.tor_net2[0].usable[2]
     command = [
         "add", "interface", "address", "--machine", "ut3c5n2",
         "--interface", "eth1", "--label", "e3", "--fqdn",
         "dyndhcp.aqd-unittest.ms.com", "--ip", ip
     ]
     out = self.badrequesttest(command)
     self.matchoutput(
         out, "Address %s [%s] is reserved for dynamic DHCP." %
         (dynname(ip), ip), command)