mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
test-network: add test case for #23197
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user