

def _get_router_gw_ports_by_network(self, context, network_id):
    port_qry = context.session.query(models_v2.Port)
    return port_qry.filter_by(network_id=network_id, device_owner=constants.DEVICE_OWNER_ROUTER_GW).all()

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