]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add test case for #23197 24174/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Aug 2022 18:43:04 +0000 (03:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Aug 2022 18:43:04 +0000 (03:43 +0900)
test/test-network/conf/25-wireguard.network
test/test-network/systemd-networkd-tests.py

index d3b0ea4e6ce1c85e0f08ee5f4f2176320a1cc704..bd3c735f4ce03923ef7a10d2b57362199f61b15b 100644 (file)
@@ -4,4 +4,6 @@ Name=wg99
 
 [Network]
 Address=192.168.124.1/24
+Address=fe80::1/64
+Address=169.254.11.1/24
 IPv6AcceptRA=no
index 1c043a692ecbd6857f8e049528cf2c2d909ce61a..71f284fd180331971075af846b82d43cfbbe0a62 100755 (executable)
@@ -1416,6 +1416,14 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
         print(output)
         self.assertIn('inet 192.168.124.1/24 scope global wg99', output)
 
+        output = check_output('ip -4 address show dev wg99')
+        print(output)
+        self.assertIn('inet 169.254.11.1/24 scope link wg99', output)
+
+        output = check_output('ip -6 address show dev wg99')
+        print(output)
+        self.assertIn('inet6 fe80::1/64 scope link', output)
+
         output = check_output('ip -4 address show dev wg98')
         print(output)
         self.assertIn('inet 192.168.123.123/24 scope global wg98', output)