def get_nexusvm_binding(vlan_id, instance_id):
 LOG.debug(_('get_nexusvm_binding() called'))
 session = db.get_session()
 try:
  binding = session.query(nexus_models_v2.NexusPortBinding).filter_by(instance_id=instance_id).filter_by(vlan_id=vlan_id).first()
  return binding
 except exc.NoResultFound:
  raise c_exc.NexusPortBindingNotFound(vlan_id=vlan_id)

def get_nexusvm_binding ( vlan_id , instance_id ) : LOG . debug ( _ ( 'get_nexusvm_binding() called' ) ) session = db . get_session ( ) try : binding = session . query ( nexus_models_v2 . NexusPortBinding ) . filter_by ( instance_id = instance_id ) . filter_by ( vlan_id = vlan_id ) . first ( ) return binding except exc . NoResultFound : raise c_exc . NexusPortBindingNotFound ( vlan_id = vlan_id )
lists nexusvm bindings .