diff options
Diffstat (limited to 'test/test-network')
3 files changed, 12 insertions, 0 deletions
diff --git a/test/test-network/conf/25-dhcp6pd-upstream-no-address.network b/test/test-network/conf/25-dhcp6pd-upstream-no-address.network index 01f0e9e6d5..051bd40029 100644 --- a/test/test-network/conf/25-dhcp6pd-upstream-no-address.network +++ b/test/test-network/conf/25-dhcp6pd-upstream-no-address.network @@ -11,6 +11,7 @@ DHCPPrefixDelegation=yes [DHCPv6] WithoutRA=solicit UseAddress=no +UnassignedSubnetPolicy=none [DHCPPrefixDelegation] UplinkInterface=:self diff --git a/test/test-network/conf/25-dhcp6pd-upstream-no-assign.network b/test/test-network/conf/25-dhcp6pd-upstream-no-assign.network index 5f76390cec..7662251de1 100644 --- a/test/test-network/conf/25-dhcp6pd-upstream-no-assign.network +++ b/test/test-network/conf/25-dhcp6pd-upstream-no-assign.network @@ -10,6 +10,7 @@ DHCPPrefixDelegation=yes [DHCPv6] WithoutRA=solicit +UnassignedSubnetPolicy=blackhole [DHCPPrefixDelegation] UplinkInterface=:self diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 01d871047a..4ab6c0749f 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -7147,6 +7147,11 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities): print(output) self.assertNotIn('inet6 3ffe:501:ffff', output) + print('### ip -6 route show dev lo') + output = check_output('ip -6 route show dev lo') + print(output) + self.assertNotRegex(output, '3ffe:501:ffff:[2-9a-f]00::/56') + self.check_dhcp6_prefix('veth99') @unittest.skipUnless(shutil.which('dhcpd'), reason="dhcpd is not available on CentOS Stream 10") @@ -7165,6 +7170,11 @@ class NetworkdDHCPPDTests(unittest.TestCase, Utilities): print(output) self.assertNotIn('inet6 3ffe:501:ffff', output) + print('### ip -6 route show type blackhole') + output = check_output('ip -6 route show type blackhole') + print(output) + self.assertRegex(output, 'blackhole 3ffe:501:ffff:[2-9a-f]00::/56 dev lo proto dhcp') + self.check_dhcp6_prefix('veth99') @unittest.skipUnless(shutil.which('dhcpd'), reason="dhcpd is not available on CentOS Stream 10") |