

@memoized.memoized_method
def get_object(self):
    try:
        router_id = self.kwargs['router_id']
        return api.neutron.router_get(self.request, router_id)
    except Exception:
        redirect = reverse(self.failure_url, args=[router_id])
        msg = _('Unable to retrieve router.')
        exceptions.handle(self.request, msg, redirect=redirect)

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/routers/extensions/routerrules/views.py AddRouterRuleView.get_object/original