def remove_vlan_binding(netid):
 LOG.debug(_('remove_vlan_binding() called'))
 session = db.get_session()
 try:
  binding = session.query(network_models_v2.Vlan_Binding).filter_by(network_id=netid).one()
  session.delete(binding)
  session.flush()
  return binding
 except exc.NoResultFound:
  pass

def remove_vlan_binding ( netid ) : LOG . debug ( _ ( 'remove_vlan_binding() called' ) ) session = db . get_session ( ) try : binding = session . query ( network_models_v2 . Vlan_Binding ) . filter_by ( network_id = netid ) . one ( ) session . delete ( binding ) session . flush ( ) return binding except exc . NoResultFound : pass
removes a vlan to network association .