FIX: Pylint reduce
[csit.git] / resources / libraries / python / LoadBalancerUtil.py
index c8e6c0d..986d5b5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2019 Intel and/or its affiliates.
+# Copyright (c) 2021 Intel and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -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
             )