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

def get_all_nexusport_bindings ( ) : LOG . debug ( _ ( 'get_all_nexusport_bindings() called' ) ) session = db . get_session ( ) try : bindings = session . query ( nexus_models_v2 . NexusPortBinding ) . all ( ) return bindings except exc . NoResultFound : return [ ]
lists all the nexusport bindings .