summaryrefslogtreecommitdiff
path: root/test/test-network/systemd-networkd-tests.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-02-19 06:06:51 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-20 14:23:07 +0900
commit045db4fa0dba022e0db7102549a9098776992ae8 (patch)
tree8a3ed3ad4c66c69696214edf5caef88fb5e8e991 /test/test-network/systemd-networkd-tests.py
parent832583ada8b9df0de3b486207dd4c703e0f181bc (diff)
downloadsystemd-045db4fa0dba022e0db7102549a9098776992ae8.tar.gz
test-network: add tests for Broadcast= with boolean settings
Diffstat (limited to 'test/test-network/systemd-networkd-tests.py')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 12e9a0a4a3..a5942ec4ea 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -1220,6 +1220,14 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
start_networkd()
self.wait_online(['wg99:carrier', 'wg98:routable', 'wg97:carrier'])
+ output = check_output('ip -4 address show dev wg98')
+ print(output)
+ self.assertIn('inet 192.168.123.123/24 scope global wg98', output)
+
+ output = check_output('ip -6 address show dev wg98')
+ print(output)
+ self.assertIn('inet6 fd8d:4d6d:3ccb:500::1/64 scope global', output)
+
if shutil.which('wg'):
call('wg')
@@ -1833,6 +1841,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
self.assertIn('inet 10.1.2.4/16 brd 10.1.255.255 scope global secondary dummy98', output)
self.assertIn('inet 10.2.2.4/16 brd 10.2.255.255 scope global dummy98', output)
self.assertIn('inet 10.7.8.9/16 brd 10.7.255.255 scope link deprecated dummy98', output)
+ self.assertIn('inet 10.8.8.1/16 scope global dummy98', output)
# test for ENOBUFS issue #17012
for i in range(1,254):