summaryrefslogtreecommitdiffstats
path: root/test/test-network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-09-17 14:55:32 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-10-06 18:24:50 +0200
commitfe2a8b3d3fc01570ebe8d43433d6a897cb2efc42 (patch)
tree12558122f7fd853f7911595422fa54bad04e7153 /test/test-network
parenttest-network: replace deprecated settings (diff)
downloadsystemd-fe2a8b3d3fc01570ebe8d43433d6a897cb2efc42.tar.xz
systemd-fe2a8b3d3fc01570ebe8d43433d6a897cb2efc42.zip
test-network: add tests for Token= in [IPv6Prefix]
Diffstat (limited to 'test/test-network')
-rw-r--r--test/test-network/conf/ipv6ra-prefix.network2
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/test/test-network/conf/ipv6ra-prefix.network b/test/test-network/conf/ipv6ra-prefix.network
index ae74c6e2c6..d91847bde7 100644
--- a/test/test-network/conf/ipv6ra-prefix.network
+++ b/test/test-network/conf/ipv6ra-prefix.network
@@ -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
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 5de2d3ae03..95d526a7f7 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -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)