def delete_vlanid(vlan_id):
 LOG.debug(_('delete_vlanid() called'))
 session = db.get_session()
 try:
  vlanid = session.query(l2network_models.VlanID).filter_by(vlan_id=vlan_id).one()
  session.delete(vlanid)
  session.flush()
  return vlanid
 except exc.NoResultFound:
  pass

def delete_vlanid ( vlan_id ) : LOG . debug ( _ ( 'delete_vlanid() called' ) ) session = db . get_session ( ) try : vlanid = session . query ( l2network_models . VlanID ) . filter_by ( vlan_id = vlan_id ) . one ( ) session . delete ( vlanid ) session . flush ( ) return vlanid except exc . NoResultFound : pass
deletes a vlanid entry from db .