2016-12-08 19:48:11 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from framework import VppTestCase, VppTestRunner
|
|
|
|
|
2016-12-12 02:55:06 +01:00
|
|
|
|
2016-12-08 19:48:11 +00:00
|
|
|
class TestFIB(VppTestCase):
|
|
|
|
""" FIB Test Case """
|
|
|
|
|
2019-03-12 19:23:27 -07:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(TestFIB, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(TestFIB, cls).tearDownClass()
|
|
|
|
|
2016-12-08 19:48:11 +00:00
|
|
|
def test_fib(self):
|
|
|
|
""" FIB Unit Tests """
|
|
|
|
error = self.vapi.cli("test fib")
|
|
|
|
|
2016-12-12 02:55:06 +01:00
|
|
|
if error:
|
|
|
|
self.logger.critical(error)
|
2019-03-06 15:11:28 -08:00
|
|
|
self.assertNotIn("Failed", error)
|
2016-12-08 19:48:11 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main(testRunner=VppTestRunner)
|