From c904709288a8734f53e5f2d8bd1cea83c1659f89 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 25 Jul 2019 10:01:46 +0900 Subject: test-network: add test for Bridge.IGMPVersion= --- test/test-network/conf/25-bridge.netdev | 1 + test/test-network/systemd-networkd-tests.py | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/test-network/conf/25-bridge.netdev b/test/test-network/conf/25-bridge.netdev index e23abd5368..a52b9d02fb 100644 --- a/test/test-network/conf/25-bridge.netdev +++ b/test/test-network/conf/25-bridge.netdev @@ -11,3 +11,4 @@ Priority=9 MulticastQuerier= true MulticastSnooping=true STP=true +IGMPVersion=3 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 458b39de7a..aa8a7a9afe 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -697,12 +697,13 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): tick = os.sysconf('SC_CLK_TCK') self.assertEqual(9, round(float(read_link_attr('bridge99', 'bridge', 'hello_time')) / tick)) self.assertEqual(9, round(float(read_link_attr('bridge99', 'bridge', 'max_age')) / tick)) - self.assertEqual(9, round(float(read_link_attr('bridge99', 'bridge','forward_delay')) / tick)) - self.assertEqual(9, round(float(read_link_attr('bridge99', 'bridge','ageing_time')) / tick)) - self.assertEqual(9, int(read_link_attr('bridge99', 'bridge','priority'))) - self.assertEqual(1, int(read_link_attr('bridge99', 'bridge','multicast_querier'))) - self.assertEqual(1, int(read_link_attr('bridge99', 'bridge','multicast_snooping'))) - self.assertEqual(1, int(read_link_attr('bridge99', 'bridge','stp_state'))) + self.assertEqual(9, round(float(read_link_attr('bridge99', 'bridge', 'forward_delay')) / tick)) + self.assertEqual(9, round(float(read_link_attr('bridge99', 'bridge', 'ageing_time')) / tick)) + self.assertEqual(9, int(read_link_attr('bridge99', 'bridge', 'priority'))) + self.assertEqual(1, int(read_link_attr('bridge99', 'bridge', 'multicast_querier'))) + self.assertEqual(1, int(read_link_attr('bridge99', 'bridge', 'multicast_snooping'))) + self.assertEqual(1, int(read_link_attr('bridge99', 'bridge', 'stp_state'))) + self.assertEqual(3, int(read_link_attr('bridge99', 'bridge', 'multicast_igmp_version'))) def test_bond(self): copy_unit_to_networkd_unit_path('25-bond.netdev', '25-bond-balanced-tlb.netdev') -- cgit v1.2.3