def get_vlan_binding(netid):
 LOG.debug(_('get_vlan_binding() called'))
 session = db.get_session()
 try:
  binding = session.query(l2network_models.VlanBinding).filter_by(network_id=netid).one()
  return binding
 except exc.NoResultFound:
  raise q_exc.NetworkNotFound(net_id=netid)

def get_vlan_binding ( netid ) : LOG . debug ( _ ( 'get_vlan_binding() called' ) ) session = db . get_session ( ) try : binding = session . query ( l2network_models . VlanBinding ) . filter_by ( network_id = netid ) . one ( ) return binding except exc . NoResultFound : raise q_exc . NetworkNotFound ( net_id = netid )
lists the vlan given a network_id .