Step 1: Move vm scripts to the right place
[integration/test.git] / test / csit / suites / openflowplugin / Inventory_Scalability_OF10 / __init__.robot
1 *** Settings ***
2 Documentation     Test suite for Inventory Scalability
3 Suite Setup       Start Suite
4 Suite Teardown    Stop Suite
5 Library           SSHLibrary
6 Library           ../../../libraries/Common.py
7 Variables         ../../../variables/Variables.py
8
9 *** Variables ***
10 ${start}          sudo mn --controller=remote,ip=${CONTROLLER} --topo tree,${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT}
11
12 *** Keywords ***
13 Start Suite
14     Log    Start mininet
15     ${TOPO_TREE_DEPTH}    Convert To Integer    ${TOPO_TREE_DEPTH}
16     ${TOPO_TREE_FANOUT}    Convert To Integer    ${TOPO_TREE_FANOUT}
17     ${numnodes}    Num Of Nodes    ${TOPO_TREE_DEPTH}    ${TOPO_TREE_FANOUT}
18     Open Connection    ${MININET}    prompt=>    timeout=${numnodes*2}
19     Login With Public Key    ${MININET_USER}    ${USER_HOME}/.ssh/${SSH_KEY}    any
20     Write    sudo ovs-vsctl set-manager ptcp:6644
21     Read Until    >
22     Write    sudo mn -c
23     Read Until    >
24     Read Until    >
25     Read Until    >
26     Write    ${start}
27     Read Until    mininet>
28
29 Stop Suite
30     Log    Stop mininet
31     Read
32     Write    exit
33     Read Until    >
34     Close Connection