test-network: add test case for #23197

This commit is contained in:
Yu Watanabe
2022-08-02 03:43:04 +09:00
parent bd7e0a3f1c
commit e4e0b239f6
2 changed files with 10 additions and 0 deletions
@@ -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)