Change-Id: I38c9db3c91a3cf0f636474a18b1a62f96b8c35cb
Signed-off-by: Ivan Hrasko <ihrasko@cisco.com>
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 ${TOOLS_SYSTEM_IP} ping -c 1 -W 1 ${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 100 -W 10 ${ip} >/dev/null && arp -n | grep ${ip} | awk '{print $3}' ${TOOLS_SYSTEM_USER} ${TOOLS_SYSTEM_PASSWORD}
[Return] ${mac_address}
Ip Addres Should Not Be Routed To Follower
[Arguments] ${data} ${session}
[Documentation] Put Routing configuration to Config DS
${resp} = RequestsLibrary.Put Request ${session} /restconf/config/sxp-cluster-route:sxp-cluster-route/ data=${data} headers=${HEADERS_XML}
+ BuiltIn.Log ${resp}
BuiltIn.Should Match "${resp.status_code}" "20?"
Clean Routing Configuration To Controller