aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaiyanx1.zhang <haiyanx1.zhang@intel.com>2020-01-21 10:08:08 +0000
committerJan Gelety <jgelety@cisco.com>2020-03-06 09:09:11 +0000
commitf1c026e58f018054e2e6f87ed6e053e32337cddd (patch)
tree42bde315f16e558713d409b0daa1ab9c0bccf6b6
parent5edb32efff441ec3bd55c155c122ff29128506bc (diff)
fix loadbalancer running error(Caused by code upgrades)
Signed-off-by: haiyanx1.zhang <haiyanx1.zhang@intel.com> Change-Id: I39bd1d9ad59971bb8cba6e664ba5509abba6a527 (cherry picked from commit 8aa83d922392c488df80cc1c490c0715b94aa250)
-rw-r--r--resources/libraries/python/LoadBalancerUtil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/libraries/python/LoadBalancerUtil.py b/resources/libraries/python/LoadBalancerUtil.py
index c8e6c0ddd7..340afe50a3 100644
--- a/resources/libraries/python/LoadBalancerUtil.py
+++ b/resources/libraries/python/LoadBalancerUtil.py
@@ -117,7 +117,7 @@ class LoadBalancerUtil:
args = dict(
pfx={
u"len": 128,
- u"address": {u"un": {u"ip": vip_addr}, u"af": 0}
+ u"address": {u"un": {u"ip4": vip_addr}, u"af": 0}
},
protocol=protocol,
port=port,
@@ -174,11 +174,11 @@ class LoadBalancerUtil:
args = dict(
pfx={
u"len": 128,
- u"address": {u"un": {u"ip": vip_addr}, u"af": 0}
+ u"address": {u"un": {u"ip4": vip_addr}, u"af": 0}
},
protocol=protocol,
port=port,
- as_address={u"un": {u"ip": as_addr}, u"af": 0},
+ as_address={u"un": {u"ip4": as_addr}, u"af": 0},
is_del=is_del,
is_flush=is_flush
)