5 from framework import VppTestCase, VppTestRunner
6 from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
9 class TestBihash(VppTestCase):
10 """ Bihash Test Cases """
14 super(TestBihash, cls).setUpClass()
17 def tearDownClass(cls):
18 super(TestBihash, cls).tearDownClass()
21 super(TestBihash, self).setUp()
24 super(TestBihash, self).tearDown()
26 def test_bihash_unittest(self):
27 """ Bihash Add/Del Test """
28 error = self.vapi.cli("test bihash ")
31 self.logger.critical(error)
32 self.assertNotIn('failed', error)
34 def test_bihash_thread(self):
35 """ Bihash Thread Test """
37 error = self.vapi.cli("test bihash threads 2 nbuckets 64000")
40 self.logger.critical(error)
41 self.assertNotIn('failed', error)
43 if __name__ == '__main__':
44 unittest.main(testRunner=VppTestRunner)