

def create_device(self, name):
    'Create a tuntap with the specified name.\n\n        The device is cleaned up at the end of the test.\n        '
    ip = ip_lib.IPWrapper()
    tap_device = name.add_tuntap(name)
    self.addCleanup(tap_device.link.delete)
    tap_device.link.set_up()

dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/agent/linux/test_tc_lib.py TcLibTestCase.create_device/VarMisuse@24/74 `ip`->`name`