]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: test static lease outside of pool 20423/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Aug 2021 07:42:06 +0000 (16:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Aug 2021 07:43:26 +0000 (16:43 +0900)
test/test-network/conf/dhcp-server-static-lease.network
test/test-network/systemd-networkd-tests.py

index 0b75063dc130c1d69c9eb7dbb0617f67d7c876b9..ecd91cd19c22fa39c7652f5cd349f968227d822a 100644 (file)
@@ -14,4 +14,4 @@ DNS=9.9.9.9
 
 [DHCPServerStaticLease]
 MACAddress=12:34:56:78:9a:bc
-Address=10.1.1.3
+Address=10.1.1.200
index d3e3a212e7fe5d5fe755e0829ae85a2f427d4f45..cccaddbc9bb5a3dec860f06f44bef6d8ee39671c 100755 (executable)
@@ -3863,7 +3863,7 @@ class NetworkdDHCPServerTests(unittest.TestCase, Utilities):
 
         output = check_output(*networkctl_cmd, '-n', '0', 'status', 'veth99', env=env)
         print(output)
-        self.assertIn('10.1.1.3 (DHCP4 via 10.1.1.1)', output)
+        self.assertIn('10.1.1.200 (DHCP4 via 10.1.1.1)', output)
 
 class NetworkdDHCPServerRelayAgentTests(unittest.TestCase, Utilities):
     links = [