mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
test-network: add test for removal of nexthops that we do not receive reply from the kernel
This commit is contained in:
@@ -3996,7 +3996,11 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
|
||||
|
||||
remove_network_unit('25-nexthop-nothing.network', '25-nexthop-dummy-2.network')
|
||||
copy_network_unit('25-nexthop-1.network', '25-nexthop-dummy-1.network')
|
||||
networkctl_reload()
|
||||
# Of course, networkctl_reconfigure() below is unnecessary in normal operation, but it is intentional
|
||||
# here to test reconfiguring with different .network files does not trigger race.
|
||||
# See also comments in link_drop_requests().
|
||||
networkctl_reconfigure('dummy98') # reconfigured with 25-nexthop-dummy-2.network
|
||||
networkctl_reload() # reconfigured with 25-nexthop-dummy-1.network
|
||||
|
||||
self.check_nexthop(manage_foreign_nexthops, first=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user