summaryrefslogtreecommitdiffstats
path: root/test/test-network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-11-05 03:39:31 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-05 18:05:00 +0100
commit451c2baf30f50b95d73e648058c7c2348dbf0c31 (patch)
tree38ddc600818d9f98d876d2c61db88523d008b661 /test/test-network
parentnetwork: merge link_foreignize_config() and link_drop_foreign_config() (diff)
downloadsystemd-451c2baf30f50b95d73e648058c7c2348dbf0c31.tar.xz
systemd-451c2baf30f50b95d73e648058c7c2348dbf0c31.zip
network: keep dynamic configurations as possible as we can on reconfigure
E.g. when a .network file is updated, but DHCP setting is unchanged, it is not necessary to drop acquired DHCP lease. So, let's not stop DHCP client and friends in link_reconfigure_impl(), but stop them later when we know they are not necessary anymore. Still DHCP clients and friends are stopped and leases are dropped when the explicit reconfiguration is requested
Diffstat (limited to 'test/test-network')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 61a4933d65..c7d75d8a67 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -6704,6 +6704,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities):
'--dhcp-option=option6:ntp-server,[2600::ff]')
networkctl_reload()
+ networkctl_reconfigure('veth99') # Release previously acquired lease and start new DHCPv6 handshake.
self.wait_online('veth99:routable', 'veth-peer:routable')
# checking address