def create_device(self, name):

        ip = ip_lib.IPWrapper()
        tap_device = ip.add_tuntap(name)
        self.addCleanup(tap_device.link.delete)
        tap_device.link.set_up()
Create a tuntap with the specified name.
dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/agent/linux/test_tc_lib.py/TcLibTestCase.create_device