summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-09 02:38:14 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-23 22:08:58 +0900
commite3cbaeab86532cab4702a6fb67928970a7330b05 (patch)
tree105a78eabb1feb2825e817b5533e1409d07a6e9c /test
parentbd7d6cec331a00fed29d00c2498f04e83d70b19c (diff)
downloadsystemd-e3cbaeab86532cab4702a6fb67928970a7330b05.tar.gz
systemd-e3cbaeab86532cab4702a6fb67928970a7330b05.tar.bz2
systemd-e3cbaeab86532cab4702a6fb67928970a7330b05.zip
test-network: add tests for issue #6088
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index d73895aeab..458b39de7a 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -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',