def test_ipv6_net_config(self): args = self.net_config_common_arguments() args.ipv6 = True args.gateway = "fd00::1" args.netmask = "112" args.hostip = "fd00::10" should_config = libvirt_setup.readfile( "{0}/cloud-admin.netv6.xml".format(FIXTURE_DIR)) is_config = libvirt_setup.net_config(args) self.assertEqual(is_config, should_config)
def test_net_config(self): args = self.net_config_common_arguments() args.ipv6 = False args.gateway = "192.168.124.1" args.netmask = "255.255.248.0" args.hostip = "192.168.124.10" should_config = libvirt_setup.readfile( "{0}/cloud-admin.net.xml".format(FIXTURE_DIR)) is_config = libvirt_setup.net_config(args) self.assertEqual(is_config, should_config)
def test_net_config(self): args = Arguments() args.cloud = "cloud" args.cloudbr = "cloudbr" args.admingw = "192.168.124.1" args.adminnetmask = "255.255.248.0" args.cloudfqdn = "unittest.suse.de" args.adminip = "192.168.124.10" args.forwardmode = "nat" should_config = libvirt_setup.readfile( "{0}/cloud-admin.net.xml".format(FIXTURE_DIR)) is_config = libvirt_setup.net_config(args) self.assertEqual(is_config, should_config)