mirror of
https://github.com/systemd/systemd.git
synced 2025-01-24 06:04:05 +03:00
test-network: also test routing policy rules are configured as expected after reconfiguration
For issue #34068.
This commit is contained in:
parent
462be8c957
commit
cd2a1e2df9
@ -3288,10 +3288,12 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
|
||||
with self.subTest(manage_foreign_routes=manage_foreign_routes):
|
||||
self._test_routing_policy_rule(manage_foreign_routes)
|
||||
|
||||
def test_routing_policy_rule_issue_11280(self):
|
||||
def test_routing_policy_rule_restart_and_reconfigure(self):
|
||||
copy_network_unit('25-routing-policy-rule-test1.network', '11-dummy.netdev',
|
||||
'25-routing-policy-rule-dummy98.network', '12-dummy.netdev')
|
||||
|
||||
# For #11280 and #34068.
|
||||
|
||||
for trial in range(3):
|
||||
restart_networkd(show_logs=(trial > 0))
|
||||
self.wait_online('test1:degraded', 'dummy98:degraded')
|
||||
@ -3299,6 +3301,18 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
|
||||
self.check_routing_policy_rule_test1()
|
||||
self.check_routing_policy_rule_dummy98()
|
||||
|
||||
networkctl_reconfigure('test1')
|
||||
self.wait_online('test1:degraded')
|
||||
|
||||
self.check_routing_policy_rule_test1()
|
||||
self.check_routing_policy_rule_dummy98()
|
||||
|
||||
networkctl_reconfigure('dummy98')
|
||||
self.wait_online('dummy98:degraded')
|
||||
|
||||
self.check_routing_policy_rule_test1()
|
||||
self.check_routing_policy_rule_dummy98()
|
||||
|
||||
def test_routing_policy_rule_reconfigure(self):
|
||||
copy_network_unit('25-routing-policy-rule-reconfigure2.network', '11-dummy.netdev')
|
||||
start_networkd()
|
||||
|
Loading…
x
Reference in New Issue
Block a user