'Query router interfaces that relate to list of router_ids.'

def _get_sync_interfaces(self, context, router_ids, device_owners=None):

    device_owners = (device_owners or [DEVICE_OWNER_ROUTER_INTF, DEVICE_OWNER_HA_REPLICATED_INT])
    if (not router_ids):
        return []
    objs = l3_obj.RouterPort.get_objects(context, router_id=router_ids, port_type=list(device_owners))
    interfaces = [self._core_plugin._make_port_dict(rp.db_obj.port) for rp in objs]
    return interfaces
