From 8aa83d922392c488df80cc1c490c0715b94aa250 Mon Sep 17 00:00:00 2001 From: "haiyanx1.zhang" Date: Tue, 21 Jan 2020 10:08:08 +0000 Subject: fix loadbalancer running error(Caused by code upgrades) Signed-off-by: haiyanx1.zhang Change-Id: I39bd1d9ad59971bb8cba6e664ba5509abba6a527 --- resources/libraries/python/LoadBalancerUtil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'resources') 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 ) -- cgit 1.2.3-korg