diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-11 23:26:34 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-15 10:14:30 +0200 |
commit | c5fcd8a70ad55ab9f84fe6ae86601cd00628687c (patch) | |
tree | 565703ef6c9f9e4df42755b1030f07b3b511e7de /test | |
parent | test-network: set IPv6AcceptRA=no if no dynamic addresses are not required (diff) | |
download | systemd-c5fcd8a70ad55ab9f84fe6ae86601cd00628687c.tar.xz systemd-c5fcd8a70ad55ab9f84fe6ae86601cd00628687c.zip |
test-network: check assigned address is not tentative state
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 6 |
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) |