summaryrefslogtreecommitdiffstats
path: root/test/test-network/systemd-networkd-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-network/systemd-networkd-tests.py')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py10
1 files changed, 10 insertions, 0 deletions
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")