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.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)