Changing extension from .txt to .robot
[integration/test.git] / test / csit / suites / openflowplugin / Inventory_Scalability_OF10 / __init__.robot
diff --git a/test/csit/suites/openflowplugin/Inventory_Scalability_OF10/__init__.robot b/test/csit/suites/openflowplugin/Inventory_Scalability_OF10/__init__.robot
new file mode 100644 (file)
index 0000000..e72ea50
--- /dev/null
@@ -0,0 +1,34 @@
+*** Settings ***
+Documentation     Test suite for Inventory Scalability
+Suite Setup       Start Suite
+Suite Teardown    Stop Suite
+Library           SSHLibrary
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+
+*** Variables ***
+${start}          sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}
+
+*** Keywords ***
+Start Suite
+    Log    Start mininet
+    ${TOPO_TREE_DEPTH}    Convert To Integer    ${TOPO_TREE_DEPTH}
+    ${TOPO_TREE_FANOUT}    Convert To Integer    ${TOPO_TREE_FANOUT}
+    ${numnodes}    Num Of Nodes    ${TOPO_TREE_DEPTH}    ${TOPO_TREE_FANOUT}
+    Open Connection    ${MININET}    prompt=>    timeout=${numnodes*2}
+    Login With Public Key    ${MININET_USER}    ${USER_HOME}/.ssh/id_rsa    any
+    Write    sudo ovs-vsctl set-manager ptcp:6644
+    Read Until    >
+    Write    sudo mn -c
+    Read Until    >
+    Read Until    >
+    Read Until    >
+    Write    ${start}
+    Read Until    mininet>
+
+Stop Suite
+    Log    Stop mininet
+    Read
+    Write    exit
+    Read Until    >
+    Close Connection