Remove code for genius
[integration/test.git] / csit / libraries / UnimgrKeywords.robot
index bb469e8987a3d0a7da85289bfe4b4e5e62940848..f753fcf437c01828ba08c6c92682a5fe36846cf6 100644 (file)
@@ -1,15 +1,18 @@
 *** Settings ***
-Documentation     Unimgr keywords defination that will be used in Unimgr suite.
-Library           OperatingSystem
-Library           SSHLibrary
-Library           String
-Resource          ./OVSDB.robot
-Resource          ./Utils.robot
-Variables         ../variables/Variables.py
+Documentation       Unimgr keywords defination that will be used in Unimgr suite.
+
+Library             OperatingSystem
+Library             SSHLibrary
+Library             String
+Resource            ./OVSDB.robot
+Resource            ./Utils.robot
+Variables           ../variables/Variables.py
+
 
 *** Variables ***
-${Bridge_Name}    ovsbr0
-${UniMgr_Variables_DIR}    ../variables/unimgr
+${Bridge_Name}              ovsbr0
+${UniMgr_Variables_DIR}     ../variables/unimgr
+
 
 *** Keywords ***
 Setup Unimgr Test Environment
@@ -19,26 +22,26 @@ Setup Unimgr Test Environment
     Prepair Unimgr Test Environment    ${TOOLS_SYSTEM_2_IP}
 
 Prepair Unimgr Test Environment
-    [Arguments]    ${Mininet_IP}
     [Documentation]    delete the ovs bridge and manager then set the manager to a passive mode ptcp:6640.
+    [Arguments]    ${Mininet_IP}
     Run Command On Remote System    ${Mininet_IP}    sudo ovs-vsctl del-manager
     Run Command On Remote System    ${Mininet_IP}    sudo ovs-vsctl del-br ${Bridge_Name}
     Run Command On Remote System    ${Mininet_IP}    sudo ovs-vsctl set-manager ptcp:${OVSDBPORT}
-    ${stdout}=    Run Command On Remote System    ${Mininet_IP}    sudo ovs-vsctl show
+    ${stdout}    Run Command On Remote System    ${Mininet_IP}    sudo ovs-vsctl show
     Should Contain    ${stdout}    "ptcp:${OVSDBPORT}"
 
 Get Add Uni Json
-    [Arguments]    ${IP-Address}    ${MAC-Address}
     [Documentation]    read the add_uni.json file and replace the IPaddress and MACaddress with the give arguments.
+    [Arguments]    ${IP-Address}    ${MAC-Address}
     ${json}    OperatingSystem.Get File    ${UniMgr_Variables_DIR}/add_uni.json
     ${temp}    Replace String    ${json}    {mac-address}    ${MAC-Address}
     ${uniJson}    Replace String    ${temp}    {uni-ip}    ${IP-Address}
-    [Return]    ${uniJson}
+    RETURN    ${uniJson}
 
 Get Add Evc Json
-    [Arguments]    ${UNI1-IP}    ${UNI2-IP}
     [Documentation]    read the add_evc.json file and replace the IP-address with the give arguments.
+    [Arguments]    ${UNI1-IP}    ${UNI2-IP}
     ${Json}    OperatingSystem.Get File    ${UniMgr_Variables_DIR}/add_evc.json
     ${temp}    Replace String    ${Json}    {uni1-ip}    ${UNI1-IP}
     ${evcJson}    Replace String    ${temp}    {uni2-ip}    ${UNI2-IP}
-    [Return]    ${evcJson}
+    RETURN    ${evcJson}