

def show(self, req, id):
    if (id == FIXED_PREFIX):
        return [_build_network(id)]
    elif (id == FLOATING_PREFIX):
        pools = self.os_helper.get_floating_ip_pools(req)
        if pools:
            return [_build_network(id)]
    raise exception.NetworkNotFound(resource_id=id)

dataset/ETHPy150Open openstack/ooi/ooi/api/network.py Controller.show/original