test-network: add a test case for IPv6PrefixDelegation.DNS=linklocal

This commit is contained in:
Yu Watanabe
2020-02-04 13:57:12 +09:00
parent fd3ef936ed
commit 41fd8fe716
2 changed files with 9 additions and 0 deletions
@@ -4,6 +4,10 @@ Name=veth-peer
[Network]
IPv6PrefixDelegation=yes
[IPv6PrefixDelegation]
DNS=_link_local 2002:da8:1:0::1
DNSLifetimeSec=1min
[IPv6Prefix]
Prefix=2002:da8:1:0::/64
PreferredLifetimeSec=1000s
@@ -2646,6 +2646,11 @@ class NetworkdRATests(unittest.TestCase, Utilities):
start_networkd()
self.wait_online(['veth99:routable', 'veth-peer:degraded'])
output = check_output(*resolvectl_cmd, 'dns', 'veth99', env=env)
print(output)
self.assertRegex(output, 'fe80::')
self.assertRegex(output, '2002:da8:1::1')
output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
print(output)
self.assertRegex(output, '2002:da8:1:0')