|
|
|
@@ -3088,9 +3088,8 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
|
|
|
|
'ipv6-prefix.network',
|
|
|
|
|
'ipv6-prefix-veth.network',
|
|
|
|
|
'ipv6-prefix-veth-token-static.network',
|
|
|
|
|
'ipv6-prefix-veth-token-static-explicit.network',
|
|
|
|
|
'ipv6-prefix-veth-token-static-multiple.network',
|
|
|
|
|
'ipv6-prefix-veth-token-prefixstable.network']
|
|
|
|
|
'ipv6-prefix-veth-token-prefixstable.network',
|
|
|
|
|
'ipv6-prefix-veth-token-prefixstable-without-address.network']
|
|
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
|
remove_links(self.links)
|
|
|
|
@@ -3123,25 +3122,9 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
|
|
|
|
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
|
|
|
|
print(output)
|
|
|
|
|
self.assertRegex(output, '2002:da8:1:0:1a:2b:3c:4d')
|
|
|
|
|
|
|
|
|
|
def test_ipv6_token_static_explicit(self):
|
|
|
|
|
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-static-explicit.network')
|
|
|
|
|
start_networkd()
|
|
|
|
|
self.wait_online(['veth99:routable', 'veth-peer:degraded'])
|
|
|
|
|
|
|
|
|
|
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
|
|
|
|
print(output)
|
|
|
|
|
self.assertRegex(output, '2002:da8:1:0:1a:2b:3c:4d')
|
|
|
|
|
|
|
|
|
|
def test_ipv6_token_static_multiple(self):
|
|
|
|
|
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-static-multiple.network')
|
|
|
|
|
start_networkd()
|
|
|
|
|
self.wait_online(['veth99:routable', 'veth-peer:degraded'])
|
|
|
|
|
|
|
|
|
|
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
|
|
|
|
print(output)
|
|
|
|
|
self.assertRegex(output, '2002:da8:1:0:1a:2b:3c:4d')
|
|
|
|
|
self.assertRegex(output, '2002:da8:1:0:fa:de:ca:fe')
|
|
|
|
|
self.assertRegex(output, '2002:da8:2:0:1a:2b:3c:4d')
|
|
|
|
|
self.assertRegex(output, '2002:da8:2:0:fa:de:ca:fe')
|
|
|
|
|
|
|
|
|
|
def test_ipv6_token_prefixstable(self):
|
|
|
|
|
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-prefixstable.network')
|
|
|
|
@@ -3151,6 +3134,17 @@ class NetworkdRATests(unittest.TestCase, Utilities):
|
|
|
|
|
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
|
|
|
|
print(output)
|
|
|
|
|
self.assertRegex(output, '2002:da8:1:0')
|
|
|
|
|
self.assertRegex(output, '2002:da8:2:0.*78:9abc') # EUI
|
|
|
|
|
|
|
|
|
|
def test_ipv6_token_prefixstable_without_address(self):
|
|
|
|
|
copy_unit_to_networkd_unit_path('25-veth.netdev', 'ipv6-prefix.network', 'ipv6-prefix-veth-token-prefixstable-without-address.network')
|
|
|
|
|
start_networkd()
|
|
|
|
|
self.wait_online(['veth99:routable', 'veth-peer:degraded'])
|
|
|
|
|
|
|
|
|
|
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
|
|
|
|
|
print(output)
|
|
|
|
|
self.assertRegex(output, '2002:da8:1:0')
|
|
|
|
|
self.assertRegex(output, '2002:da8:2:0')
|
|
|
|
|
|
|
|
|
|
class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
|
|
|
|
|
links = ['veth99']
|
|
|
|
|