aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/IPv4Setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/python/IPv4Setup.py')
-rw-r--r--resources/libraries/python/IPv4Setup.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/resources/libraries/python/IPv4Setup.py b/resources/libraries/python/IPv4Setup.py
index ed65518254..a9d9caa51c 100644
--- a/resources/libraries/python/IPv4Setup.py
+++ b/resources/libraries/python/IPv4Setup.py
@@ -231,14 +231,18 @@ class IPv4Setup(object):
"""IPv4 setup in topology."""
@staticmethod
- def vpp_nodes_setup_ipv4_addresses(nodes, nodes_addr):
- """Setup IPv4 addresses on all VPP nodes in topology.
+ def vpp_nodes_set_ipv4_addresses(nodes, nodes_addr):
+ """Set IPv4 addresses on all VPP nodes in topology.
:param nodes: Nodes of the test topology.
:param nodes_addr: Available nodes IPv4 adresses.
:type nodes: dict
:type nodes_addr: dict
+ :return: affected interfaces as list of (node, interface) tuples
+ :rtype: list
"""
+
+ interfaces = []
for net in nodes_addr.values():
for port in net['ports'].values():
host = port.get('node')
@@ -251,7 +255,9 @@ class IPv4Setup(object):
if node['type'] != NodeType.DUT:
continue
get_node(node).set_ip(port['if'], port['addr'], net['prefix'])
- InterfaceUtil.set_interface_state(node, port['if'], 'up')
+ interfaces.append((node, port['if']))
+
+ return interfaces
@staticmethod
@keyword('Get IPv4 address of node "${node}" interface "${port}" '