def get_all_vlanids_used():
 LOG.debug(_('get_all_vlanids() called'))
 session = db.get_session()
 try:
  vlanids = session.query(l2network_models.VlanID).filter_by(vlan_used=True).all()
  return vlanids
 except exc.NoResultFound:
  return []

def get_all_vlanids_used ( ) : LOG . debug ( _ ( 'get_all_vlanids() called' ) ) session = db . get_session ( ) try : vlanids = session . query ( l2network_models . VlanID ) . filter_by ( vlan_used = True ) . all ( ) return vlanids except exc . NoResultFound : return [ ]
gets all the vlanids used .