From 395ed47437010c9852d9d620f491f660a085dbfd Mon Sep 17 00:00:00 2001 From: Zdeno Date: Mon, 18 Apr 2016 16:17:26 +0200 Subject: CSIT-9: COP Whitelist/blacklist - Included are also IPv6 tests - JIRA: CSIT-17 Change-Id: I89ae6c38cdc6742a597c0dc24ed1c033c1b5d155 Signed-off-by: Zdeno --- resources/libraries/python/IPv4Setup.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'resources/libraries/python/IPv4Setup.py') 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) -- cgit 1.2.3-korg