X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_l2bd.py;h=718d5126bd990f481688a428f6b086a6b0a0501f;hb=4ea511c855ae9bf2040f8cff8b7323692094e8c6;hp=30708a46a03a7d02e498758524fc5734a743837e;hpb=dab231a11ec96e829b22ff80c612333edc5a93e6;p=vpp.git diff --git a/test/test_l2bd.py b/test/test_l2bd.py index 30708a46a03..718d5126bd9 100644 --- a/test/test_l2bd.py +++ b/test/test_l2bd.py @@ -75,7 +75,7 @@ class TestL2bd(VppTestCase): for pg_if in cls.pg_interfaces: sw_if_index = pg_if.sub_if.sw_if_index \ if hasattr(pg_if, 'sub_if') else pg_if.sw_if_index - cls.vapi.sw_interface_set_l2_bridge(sw_if_index, + cls.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=sw_if_index, bd_id=cls.bd_id) # setup all interfaces @@ -94,6 +94,10 @@ class TestL2bd(VppTestCase): super(TestL2bd, cls).tearDownClass() raise + @classmethod + def tearDownClass(cls): + super(TestL2bd, cls).tearDownClass() + def setUp(self): """ Clear trace and packet infos before running each test. @@ -184,7 +188,7 @@ class TestL2bd(VppTestCase): last_info[i.sw_if_index] = None dst_sw_if_index = pg_if.sw_if_index for packet in capture: - payload_info = self.payload_to_info(str(packet[Raw])) + payload_info = self.payload_to_info(packet[Raw]) src_sw_if_index = payload_info.src src_if = None for ifc in self.pg_interfaces: @@ -252,7 +256,7 @@ class TestL2bd(VppTestCase): Test scenario: 1.config MAC learning enabled - learn 100 MAC enries + learn 100 MAC entries 3 interfaces: untagged, dot1q, dot1ad (dot1q used instead of dot1ad in the first version) @@ -269,7 +273,7 @@ class TestL2bd(VppTestCase): Test scenario: 1.config MAC learning enabled - learn 100 MAC enries + learn 100 MAC entries 3 interfaces: untagged, dot1q, dot1ad (dot1q used instead of dot1ad in the first version)