aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/IPv4Setup.py
diff options
context:
space:
mode:
authorZdeno <zolsovsk@cisco.com>2016-04-18 16:17:26 +0200
committerZdeno Olsovsky <zolsovsk@cisco.com>2016-05-09 15:11:56 +0200
commit395ed47437010c9852d9d620f491f660a085dbfd (patch)
tree62bb03659c8886b192c619636fff7b9c546441c4 /resources/libraries/python/IPv4Setup.py
parent8935f5271dacc631d5b834b27b36bfad83c350c2 (diff)
CSIT-9: COP Whitelist/blacklist
- Included are also IPv6 tests - JIRA: CSIT-17 Change-Id: I89ae6c38cdc6742a597c0dc24ed1c033c1b5d155 Signed-off-by: Zdeno <zolsovsk@cisco.com>
Diffstat (limited to 'resources/libraries/python/IPv4Setup.py')
-rw-r--r--resources/libraries/python/IPv4Setup.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/libraries/python/IPv4Setup.py b/resources/libraries/python/IPv4Setup.py
index 14179c3105..50154103ec 100644
--- a/resources/libraries/python/IPv4Setup.py
+++ b/resources/libraries/python/IPv4Setup.py
@@ -314,3 +314,18 @@ class IPv4Setup(object):
nodes_addr)
mac_address = adj_int['mac_address']
get_node(node).set_arp(interface_name, ip_address, mac_address)
+
+ @staticmethod
+ def add_arp_on_dut(node, interface, ip_address, mac_address):
+ """Set ARP cache entree on DUT node.
+
+ :param node: Node in the topology.
+ :param interface: Interface name of the node.
+ :param ip_address: IP address of the interface.
+ :param mac_address: MAC address of the interface.
+ :type node: dict
+ :type interface: str
+ :type ip_address: str
+ :type mac_address: str
+ """
+ get_node(node).set_arp(interface, ip_address, mac_address)