

def _get_dns_by_subnet(self, context, subnet_id):
    dns_qry = context.session.query(models_v2.DNSNameServer)
    return dns_qry.filter_by(subnet_id=subnet_id).order_by(models_v2.DNSNameServer.order).all()

dataset/ETHPy150Open openstack/neutron/neutron/db/db_base_plugin_common.py DbBasePluginCommon._get_dns_by_subnet/original