def plug_interface(cluster, lswitch_id, port, type, attachment=None):
 lport_obj = {}
 if attachment:
  lport_obj['vif_uuid'] = attachment
 lport_obj['type'] = type
 return _plug_interface(cluster, lswitch_id, port, lport_obj)

def plug_interface ( cluster , lswitch_id , port , type , attachment = None ) : lport_obj = { } if attachment : lport_obj [ 'vif_uuid' ] = attachment lport_obj [ 'type' ] = type return _plug_interface ( cluster , lswitch_id , port , lport_obj )
plug a vif attachment object in a logical port .