def _vip_get(request, vip_id, expand_resource=False): vip = neutronclient(request).show_vip(vip_id).get('vip') if expand_resource: vip['subnet'] = neutron.subnet_get(request, vip['subnet_id']) vip['port'] = neutron.port_get(request, vip['port_id']) vip['pool'] = _pool_get(request, vip['pool_id']) return Vip(vip)
def _vip_get(request, vip_id, expand_resource=False): vip = neutronclient(request).show_vip(vip_id).get("vip") if expand_resource: vip["subnet"] = neutron.subnet_get(request, vip["subnet_id"]) vip["port"] = neutron.port_get(request, vip["port_id"]) vip["pool"] = _pool_get(request, vip["pool_id"]) return Vip(vip)