def get_tap_device_name(interface_id):
 if (not interface_id):
  LOG.warning(_LW('Invalid Interface ID, will lead to incorrect tap device name'))
 tap_device_name = (n_const.TAP_DEVICE_PREFIX + interface_id[:constants.RESOURCE_ID_LENGTH])
 return tap_device_name

def get_tap_device_name ( interface_id ) : if ( not interface_id ) : LOG . warning ( _LW ( 'Invalid Interface ID, will lead to incorrect tap device name' ) ) tap_device_name = ( n_const . TAP_DEVICE_PREFIX + interface_id [ : constants . RESOURCE_ID_LENGTH ] ) return tap_device_name
convert port id into device name format expected by linux bridge .