]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add tests for issue #6088 12977/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Jul 2019 17:38:14 +0000 (02:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 23 Jul 2019 13:08:58 +0000 (22:08 +0900)
test/test-network/systemd-networkd-tests.py

index d73895aeab1b548f1a479644ca1e4db905ecdc06..458b39de7a940500000602660013264af81c7f72 100755 (executable)
@@ -2163,6 +2163,12 @@ class NetworkdBridgeTests(unittest.TestCase, Utilities):
         print(output)
         self.assertRegex(output, '192.168.0.16/24')
 
+        # for issue #6088
+        print('### ip -6 route list table all dev bridge99')
+        output = check_output('ip -6 route list table all dev bridge99')
+        print(output)
+        self.assertRegex(output, 'ff00::/8 table local metric 256 pref medium')
+
         self.assertEqual(call('ip link del test1'), 0)
         time.sleep(3)
 
@@ -2179,6 +2185,11 @@ class NetworkdBridgeTests(unittest.TestCase, Utilities):
         self.assertNotRegex(output, '192.168.0.15/24')
         self.assertNotRegex(output, '192.168.0.16/24')
 
+        print('### ip -6 route list table all dev bridge99')
+        output = check_output('ip -6 route list table all dev bridge99')
+        print(output)
+        self.assertRegex(output, 'ff00::/8 table local metric 256 (?:linkdown |)pref medium')
+
     def test_bridge_ignore_carrier_loss(self):
         copy_unit_to_networkd_unit_path('11-dummy.netdev', '12-dummy.netdev', '26-bridge.netdev',
                                         '26-bridge-slave-interface-1.network', '26-bridge-slave-interface-2.network',