aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/IPTopology.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python/IPTopology.py')
-rw-r--r--resources/libraries/python/IPTopology.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/libraries/python/IPTopology.py b/resources/libraries/python/IPTopology.py
index bc2f5f13a7..6255583110 100644
--- a/resources/libraries/python/IPTopology.py
+++ b/resources/libraries/python/IPTopology.py
@@ -22,21 +22,21 @@ class IPTopology:
"""IP Topology Library."""
@staticmethod
- def initialize_ipv4_forwarding(count=1, parallel_links=1):
+ def initialize_ipv4_forwarding(count=1, pfs=2):
"""
Custom setup of IPv4 forwarding with scalability of IP routes on all
DUT nodes in 2-node / 3-node circular topology.
:param count: Number of routes to configure.
- :param parallel_links: Number of parallel links to configure.
+ :param pfs: Number of physical interfaces to configure.
:type count: int
- :type parallel_links: int
+ :type pfs: int
"""
topology = BuiltIn().get_variable_value("&{topology_info}")
dut = topology["duts"][-1]
ifl = BuiltIn().get_variable_value("${int}")
- for l, i in zip(range(parallel_links), range(1, parallel_links*2, 2)):
+ for l, i in zip(range(pfs // 2), range(1, pfs, 2)):
dut1_int1 = BuiltIn().get_variable_value(f"${{DUT1_{ifl}{i}}}[0]")
dut1_int2 = BuiltIn().get_variable_value(f"${{DUT1_{ifl}{i+1}}}[0]")
dut_int1 = BuiltIn().get_variable_value(f"${{{dut}_{ifl}{i}}}[0]")