SXP: Use ip instead of arp 78/77278/8
authorIvan Hrasko <ihrasko@cisco.com>
Thu, 25 Oct 2018 14:09:10 +0000 (16:09 +0200)
committerIvan Hrasko <ihrasko@cisco.com>
Wed, 7 Nov 2018 13:25:44 +0000 (13:25 +0000)
Change-Id: I5aa16e324589c3136d1d2eecb57748abce3d5963
Signed-off-by: Ivan Hrasko <ihrasko@cisco.com>
csit/libraries/SxpClusterLib.robot

index 952d68a549b398ae56e14f08ca2dfece19f82d43..6a3562a4e0cc97ab9026872ce77ebbefa6827130 100644 (file)
@@ -124,7 +124,7 @@ Map Followers To Mac Addresses
 Find Mac Address Of Ip Address
     [Arguments]    ${ip}
     [Documentation]    Finds out MAC-ADDRESS of specified IP by pinging it from TOOLS_SYSTEM machine
-    ${mac_address} =    Utils.Run Command On Remote System And Log    ${TOOLS_SYSTEM_IP}    ping -c 1 -W 10 ${ip} >/dev/null && arp -n | grep ${ip} | awk '{print $3}'    ${TOOLS_SYSTEM_USER}    ${TOOLS_SYSTEM_PASSWORD}
+    ${mac_address} =    Utils.Run Command On Remote System And Log    ${TOOLS_SYSTEM_IP}    ping -c 10 -W 10 ${ip} >/dev/null && sudo ip neighbor show ${ip} | awk '{print $5}'    ${TOOLS_SYSTEM_USER}    ${TOOLS_SYSTEM_PASSWORD}
     [Return]    ${mac_address}
 
 Ip Addres Should Not Be Routed To Follower