mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
test-network: add tests for Token= in [IPv6Prefix]
This commit is contained in:
parent
b48b6bd3b9
commit
fe2a8b3d3f
@ -14,6 +14,8 @@ Prefix=2001:db8:0:1::/64
|
||||
[IPv6Prefix]
|
||||
Prefix=2001:db8:0:2::/64
|
||||
Assign=yes
|
||||
Token=::1a:2b:3c:4d
|
||||
Token=static:::fa:de:ca:fe
|
||||
|
||||
[IPv6Prefix]
|
||||
Prefix=2001:db8:0:3::/64
|
||||
|
@ -4895,7 +4895,8 @@ class NetworkdIPv6PrefixTests(unittest.TestCase, Utilities):
|
||||
output = check_output('ip address show dev veth99')
|
||||
print(output)
|
||||
self.assertNotIn('inet6 2001:db8:0:1:', output)
|
||||
self.assertIn('inet6 2001:db8:0:2:', output)
|
||||
self.assertIn('inet6 2001:db8:0:2:1a:2b:3c:4d', output)
|
||||
self.assertIn('inet6 2001:db8:0:2:fa:de:ca:fe', output)
|
||||
self.assertNotIn('inet6 2001:db8:0:3:', output)
|
||||
|
||||
output = check_output(*resolvectl_cmd, 'dns', 'veth-peer', env=env)
|
||||
|
Loading…
Reference in New Issue
Block a user