コード例 #1
0
ファイル: lbaas.py プロジェクト: CiscoSystems/horizon
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)
コード例 #2
0
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)
コード例 #3
0
ファイル: lbaas.py プロジェクト: Bibibi888/horizon
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)