

def get_router_choices(self, request, kwargs):
    tenant_id = self.request.user.tenant_id
    routers_list = api.fwaas.firewall_unassociated_routers_list(request, tenant_id)
    return [(r.id, r.name_or_id) for r in routers_list]

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/firewalls/forms.py AddRouterToFirewall.get_router_choices/original