def remove_nexusport_binding(port_id, vlan_id, switch_ip, instance_id):
 LOG.debug(_('remove_nexusport_binding() called'))
 session = db.get_session()
 try:
  binding = session.query(nexus_models_v2.NexusPortBinding).filter_by(vlan_id=vlan_id).filter_by(switch_ip=switch_ip).filter_by(port_id=port_id).filter_by(instance_id=instance_id).all()
  for bind in binding:
   session.delete(bind)
  session.flush()
  return binding
 except exc.NoResultFound:
  pass

def remove_nexusport_binding ( port_id , vlan_id , switch_ip , instance_id ) : LOG . debug ( _ ( 'remove_nexusport_binding() called' ) ) session = db . get_session ( ) try : binding = session . query ( nexus_models_v2 . NexusPortBinding ) . filter_by ( vlan_id = vlan_id ) . filter_by ( switch_ip = switch_ip ) . filter_by ( port_id = port_id ) . filter_by ( instance_id = instance_id ) . all ( ) for bind in binding : session . delete ( bind ) session . flush ( ) return binding except exc . NoResultFound : pass
removes a nexusport binding .