Roman Podolyaka daaf2b6d65 Fix usage of Query.all() and NoResultFound
SQLAlchemy Query.all() method doesn't raise NoResultFound
exception in case if no result is found but rather returns
an empty list. So this pattern which is common for our code
doesn't make sense and should be fixed:

    try:
        dns_qry = context.session.query(models_v2.DNSNameServer)
        return dns_qry.filter_by(subnet_id=subnet_id).all()
    except exc.NoResultFound:
        return []

Fixes bug 1173131.

Change-Id: I19b64eecd6edac0dba7dd0bf2ab32690c46e4f8b
2013-05-03 16:24:57 +03:00
..
2012-09-17 10:54:14 -07:00

Cisco Quantum Virtual Network Plugin

This plugin implements Quantum v2 APIs and helps configure
topologies consisting of virtual and physical switches.

For more details on use please refer to:
http://wiki.openstack.org/cisco-quantum