mirror of
https://github.com/systemd/systemd.git
synced 2025-02-24 17:57:34 +03:00
test-network: add test case for preferred source with peer
For issue #31950.
This commit is contained in:
parent
56f91e2d0b
commit
f320c0777a
@ -6,7 +6,16 @@ Name=dummy98
|
||||
Address=2001:1234:56:8f63::1/64
|
||||
IPv6AcceptRA=no
|
||||
|
||||
[Address]
|
||||
Address=10.10.10.1/32
|
||||
Peer=192.168.30.1/32
|
||||
|
||||
[Route]
|
||||
Destination=abcd::/16
|
||||
Gateway=2001:1234:56:8f63::1:1
|
||||
PreferredSource=2001:1234:56:8f63::1
|
||||
|
||||
[Route]
|
||||
Destination=10.123.0.0/16
|
||||
Gateway=192.168.30.1
|
||||
PreferredSource=10.10.10.1
|
||||
|
@ -3707,6 +3707,10 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
|
||||
print(output)
|
||||
self.assertIn('abcd::/16 via 2001:1234:56:8f63::1:1 proto static src 2001:1234:56:8f63::1', output)
|
||||
|
||||
output = check_output('ip -4 route list dev dummy98')
|
||||
print(output)
|
||||
self.assertIn('10.123.0.0/16 via 192.168.30.1 proto static src 10.10.10.1', output)
|
||||
|
||||
def test_ip_link_mac_address(self):
|
||||
copy_network_unit('25-address-link-section.network', '12-dummy.netdev')
|
||||
start_networkd()
|
||||
|
Loading…
x
Reference in New Issue
Block a user