aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-12-11 10:32:41 +0000
committerPeter Mikus <pmikus@cisco.com>2019-12-11 10:44:30 +0000
commit53f3ee868ef4dbd2ab41a6fdf0a7255a370f9678 (patch)
tree3c2d96274a25a4611b58729ad8e7b33d40d1456e /resources
parent3d5a75be5a88931690898e0fe52e4f48bc67c5ed (diff)
FIX: NF_Density pipeline ip4 profile
- Because they are failing Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I55c51bd3e4673414e5394cc6ba990257574ab002
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/ContainerUtils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/libraries/python/ContainerUtils.py b/resources/libraries/python/ContainerUtils.py
index d10360f79e..f9095168f8 100644
--- a/resources/libraries/python/ContainerUtils.py
+++ b/resources/libraries/python/ContainerUtils.py
@@ -458,9 +458,9 @@ class ContainerManager:
mid1 = kwargs[u"mid1"]
mid2 = kwargs[u"mid2"]
role1 = u"master"
- role2 = u"master" if node in (kwargs[u"nodes"], 1) else u"slave"
- kwargs[u"mid2"] = kwargs[u"mid2"] if node in (kwargs[u"nodes"], 1) \
- else kwargs[u"mid2"] + 1
+ role2 = u"master" if node == kwargs[u"nodes"] else u"slave"
+ kwargs[u"mid2"] = kwargs[u"mid2"] \
+ if node == kwargs[u"nodes"] else kwargs[u"mid2"] + 1
vif1_mac = kwargs[u"tg_if1_mac"] \
if (kwargs[u"mid1"] - 1) % kwargs[u"nodes"] + 1 == 1 \
else f"52:54:00:00:{(kwargs[u'mid1'] - 1):02X}:02"