def get_all_vlan_bindings():
 LOG.debug(_('get_all_vlan_bindings() called'))
 session = db.get_session()
 try:
  bindings = session.query(network_models_v2.Vlan_Binding).all()
  return bindings
 except exc.NoResultFound:
  return []

def get_all_vlan_bindings ( ) : LOG . debug ( _ ( 'get_all_vlan_bindings() called' ) ) session = db . get_session ( ) try : bindings = session . query ( network_models_v2 . Vlan_Binding ) . all ( ) return bindings except exc . NoResultFound : return [ ]
lists all the vlan to network associations .