*** Settings ***
Documentation Library containing Keywords used for SXP cluster testing
Library RequestsLibrary
-Library ./Sxp.py
-Resource ./SxpLib.robot
Resource ./ClusterManagement.robot
Resource ./SetupUtils.robot
+Resource ./SxpLib.robot
Resource ../variables/Variables.robot
*** Variables ***
@{SHARD_OPER_LIST} inventory topology default entity-ownership
@{SHARD_CONF_LIST} inventory topology default
+@{SXP_PACKAGE} org.opendaylight.sxp
${DEVICE_SESSION} device_1
${DEVICE_NODE_ID} 1.1.1.1
${CLUSTER_NODE_ID} 2.2.2.2
${SXP_LOG_LEVEL} INFO
-@{SXP_PACKAGE} org.opendaylight.sxp
+${VIRTUAL_IP} ${TOOLS_SYSTEM_2_IP}
+${VIRTUAL_IP_MASK} 255.255.255.0
+${VIRTUAL_INTERFACE} eth0
+${MAC_ADDRESS_TABLE} &{EMPTY}
*** Keywords ***
Setup SXP Cluster Session
... ${passwd}
BuiltIn.Log ${stdout}
-Create Virtual Interface Eth0
+Create Virtual Interface
[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 ${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 Eth0
+Delete Virtual Interface
[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 ip link delete ${VIRTUAL_INTERFACE} 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}