aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/topology.py
diff options
context:
space:
mode:
authorselias <samelias@cisco.com>2016-11-25 10:50:29 +0100
committerPeter Mikus <pmikus@cisco.com>2016-12-01 07:26:51 +0000
commit4f70ebf481d496f91d2b1ec27361c9898b19c451 (patch)
tree4d24f1218c2123c9cabeeb35622c7434a3f7ee26 /resources/libraries/python/topology.py
parentd7e03f0eeeb599bd40b123123753ac41800bd3f5 (diff)
CSIT-481: HC Test: Port mirroring (SPAN)
- add port mirroring test suite - add relevant keywords Change-Id: I4ff398dd2ab4323e2a53af2812bf07cbb7043252 Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/python/topology.py')
-rw-r--r--resources/libraries/python/topology.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/libraries/python/topology.py b/resources/libraries/python/topology.py
index 3c903e5c94..0214cc9c02 100644
--- a/resources/libraries/python/topology.py
+++ b/resources/libraries/python/topology.py
@@ -126,6 +126,19 @@ class Topology(object):
node['interfaces'][iface_key]['vpp_sw_index'] = int(sw_if_index)
@staticmethod
+ def update_interface_name(node, iface_key, name):
+ """Update name on the interface from the node.
+
+ :param node: Node to update name on.
+ :param iface_key: Topology key of the interface.
+ :param name: Interface name to store.
+ :type node: dict
+ :type iface_key: str
+ :type name: str
+ """
+ node['interfaces'][iface_key]['name'] = str(name)
+
+ @staticmethod
def update_interface_mac_address(node, iface_key, mac_address):
"""Update mac_address on the interface from the node.