

@memoized.memoized_method
def get_object(self):
    try:
        network_id = self.kwargs['network_id']
        network = api.neutron.network_get(self.request, network_id)
        return network
    except Exception:
        redirect = reverse('horizon:project:networks:index')
        msg = _('Unable to retrieve network.')
        exceptions.handle(self.request, msg, redirect=redirect)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/networks/subnets/views.py CreateView.get_object/original