X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Flibraries%2FSxpClusterLib.robot;h=070e268007697c01b82143efac31d0e6572cafd9;hb=2e2d81e857113575325038257a861bae300e16eb;hp=f6061c8718ceecabbe51b0df57e81366d7b542cf;hpb=a4b923933325fa1f31017ce072f59901dbe35773;p=integration%2Ftest.git diff --git a/csit/libraries/SxpClusterLib.robot b/csit/libraries/SxpClusterLib.robot index f6061c8718..070e268007 100644 --- a/csit/libraries/SxpClusterLib.robot +++ b/csit/libraries/SxpClusterLib.robot @@ -1,20 +1,23 @@ *** 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 @@ -155,16 +158,16 @@ Shutdown Tools Node ... ${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}