'Create a tuntap with the specified name.
The device is cleaned up at the end of the test.'

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()
