test-network: reconfigure interface instead of restarting networkd

This commit is contained in:
Yu Watanabe
2021-10-26 08:20:29 +09:00
parent b4564f4e8f
commit 5b47f35d0e
+2 -2
View File
@@ -2029,8 +2029,8 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
print(output)
self.assertNotIn('deprecated', output)
# 2. restart networkd to reconfigure the interface.
restart_networkd()
# 2. reconfigure the interface.
check_output(*networkctl_cmd, 'reconfigure', 'dummy98', env=env)
self.wait_online(['dummy98:routable'])
# 3. check the deprecated flag is set for the address configured with PreferredLifetime=0