diff options
Diffstat (limited to 'test/test_af_packet.py')
-rw-r--r-- | test/test_af_packet.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/test/test_af_packet.py b/test/test_af_packet.py deleted file mode 100644 index 9017fb71cbf..00000000000 --- a/test/test_af_packet.py +++ /dev/null @@ -1,39 +0,0 @@ -import unittest -import os -import psutil - -from framework import VppTestCase, VppTestRunner -from vpp_devices import VppAFPacketInterface - - -class TestAFPacket(VppTestCase): - """ Host interface Test Case """ - - host_if_name = 'afp0' - - @classmethod - def setUpClass(cls): - super(TestAFPacket, cls).setUpClass() - os.system('ip tuntap add dev ' + cls.host_if_name + ' mode tap') - - @classmethod - def tearDownClass(cls): - super(TestAFPacket, cls).tearDownClass() - os.system('ip link delete ' + cls.host_if_name) - - def test_tap_add_del(self): - """Create host interface""" - # check if host interface exists - self.assertTrue( - psutil.net_if_addrs().get( - self.host_if_name), - 'Host interface ' + - self.host_if_name + - ' does not exist') - afp0 = VppAFPacketInterface(self, self.host_if_name) - afp0.add_vpp_config() - self.assertTrue(afp0.query_vpp_config()) - - -if __name__ == '__main__': - unittest.main(testRunner=VppTestRunner) |