mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
test-network: add test case for #23197
This commit is contained in:
parent
bd7e0a3f1c
commit
e4e0b239f6
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user