${SXP_LOG_LEVEL} INFO
${VIRTUAL_IP} ${TOOLS_SYSTEM_2_IP}
${VIRTUAL_IP_MASK} 255.255.255.0
-${VIRTUAL_INTERFACE} eth0
+${VIRTUAL_INTERFACE} dummy0
${MAC_ADDRESS_TABLE} &{EMPTY}
${DEVICE_NODE_ID} ${TOOLS_SYSTEM_IP}
${CLUSTER_NODE_ID} ${TOOLS_SYSTEM_2_IP}
Check Cluster is Connected
[Arguments] ${node} ${version}=version4 ${port}=64999 ${mode}=speaker ${session}=session
- [Documentation] Get SXP connections from cluster and verify that they contain a connection to the device in state "on"
+ [Documentation] Get SXP connections of cluster ${node} and verify that they contain a connection to the device ${DEVICE_NODE_ID} in state "on"
${resp} = SxpLib.Get Connections node=${node} session=${session}
SxpLib.Should Contain Connection ${resp} ${DEVICE_NODE_ID} ${port} ${mode} ${version} on
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 1 -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
[Documentation] Create virtual interface on all of the cluster nodes
: FOR ${i} IN RANGE ${NUM_ODL_SYSTEM}
\ Utils.Run Command On Remote System ${ODL_SYSTEM_${i+1}_IP} sudo modprobe dummy ${ODL_SYSTEM_USER} ${ODL_SYSTEM_PASSWORD}
- \ Utils.Run Command On Remote System ${ODL_SYSTEM_${i+1}_IP} sudo ip link set name ${VIRTUAL_INTERFACE} dev dummy0 ${ODL_SYSTEM_USER} ${ODL_SYSTEM_PASSWORD}
\ Utils.Run Command On Remote System And Log ${ODL_SYSTEM_${i+1}_IP} sudo ip link show ${ODL_SYSTEM_USER} ${ODL_SYSTEM_PASSWORD}
Delete Virtual Interface