${stdout} = BuiltIn.Run Keyword And Return If ${rc} == 0 Utils.Run Command On Remote System ${ip_address} sudo shutdown -P 0 ${user}
... ${passwd}
BuiltIn.Log ${stdout}
+
+Create Virtual Interface Eth0
+ [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 eth0 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 Eth0
+ [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 ip link delete eth0 type dummy ${ODL_SYSTEM_USER} ${ODL_SYSTEM_PASSWORD}
+ \ Utils.Run Command On Remote System ${ODL_SYSTEM_${i+1}_IP} sudo rmmod dummy ${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}
SxpClusterLib.Setup SXP Cluster Session
${mac_addresses} = SxpClusterLib.Map Followers To Mac Addresses
BuiltIn.Set Suite Variable ${MAC_ADDRESS_TABLE} ${mac_addresses}
+ SxpClusterLib.Create Virtual Interface Eth0
Clean Custom SXP Cluster Session
[Documentation] Cleans up resources generated by test
${controller_index} = SxpClusterLib.Get Active Controller
SxpLib.Clean Routing Configuration To Controller controller${controller_index}
SxpClusterLib.Clean SXP Cluster Session
+ SxpClusterLib.Delete Virtual Interface Eth0
Isolate SXP Controller
[Arguments] ${controller_index}