def get_network_state(physical_network, vlan_id):
 session = db.get_session()
 try:
  state = session.query(l2network_models_v2.NetworkState).filter_by(physical_network=physical_network, vlan_id=vlan_id).one()
  return state
 except exc.NoResultFound:
  return None

def get_network_state ( physical_network , vlan_id ) : session = db . get_session ( ) try : state = session . query ( l2network_models_v2 . NetworkState ) . filter_by ( physical_network = physical_network , vlan_id = vlan_id ) . one ( ) return state except exc . NoResultFound : return None
get state of specified network .