summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-07-11 23:26:34 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-07-15 10:14:30 +0200
commitc5fcd8a70ad55ab9f84fe6ae86601cd00628687c (patch)
tree565703ef6c9f9e4df42755b1030f07b3b511e7de /test
parenttest-network: set IPv6AcceptRA=no if no dynamic addresses are not required (diff)
downloadsystemd-c5fcd8a70ad55ab9f84fe6ae86601cd00628687c.tar.xz
systemd-c5fcd8a70ad55ab9f84fe6ae86601cd00628687c.zip
test-network: check assigned address is not tentative state
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 4dca56f7dc..31ef04af8a 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -3168,6 +3168,12 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
self.assertRegex(output, '2600::')
self.assertNotRegex(output, '192.168.5')
+ output = check_output('ip addr show dev veth99')
+ print(output)
+ self.assertRegex(output, '2600::')
+ self.assertNotRegex(output, '192.168.5')
+ self.assertNotRegex(output, 'tentative')
+
# Confirm that ipv6 token is not set in the kernel
output = check_output('ip token show dev veth99')
print(output)