aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/QemuManager.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2020-04-21 15:25:49 +0000
committerPeter Mikus <pmikus@cisco.com>2020-04-22 09:25:14 +0000
commit5dc176ab31af5dff73be6dd5266169a7be19dd13 (patch)
treeeeac66943aa3372a37fa0c49f2160bf0425b1b1e /resources/libraries/python/QemuManager.py
parent12d5c9afe45ed1333e6117ef3a8d036240e80acd (diff)
FIX: NF_density MAC addresses
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I0e773060c344fda7b06937a81a53863a96a4373a
Diffstat (limited to 'resources/libraries/python/QemuManager.py')
-rw-r--r--resources/libraries/python/QemuManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/QemuManager.py b/resources/libraries/python/QemuManager.py
index a9b1b6423e..ce55be0a51 100644
--- a/resources/libraries/python/QemuManager.py
+++ b/resources/libraries/python/QemuManager.py
@@ -68,13 +68,13 @@ class QemuManager:
vif1_mac = Topology.get_interface_mac(
self.nodes[node], f"vhost{idx1}"
) if kwargs[u"vnf"] == u"testpmd_mac" \
- else kwargs[u"tg_if1_mac"] if nf_node == 1 \
+ else kwargs[u"tg_pf1_mac"] if nf_node == 1 \
else f"52:54:00:00:{(qemu_id - 1):02x}:02"
idx2 = (nf_chain - 1) * nf_nodes * 2 + nf_node * 2
vif2_mac = Topology.get_interface_mac(
self.nodes[node], f"vhost{idx2}"
) if kwargs[u"vnf"] == u"testpmd_mac" \
- else kwargs[u"tg_if2_mac"] if nf_node == nf_nodes \
+ else kwargs[u"tg_pf2_mac"] if nf_node == nf_nodes \
else f"52:54:00:00:{(qemu_id + 1):02x}:01"
self.machines_affinity[name] = CpuUtils.get_affinity_nf(