Mininet clean command to use "Execute Command" vs "Write"
[integration/test.git] / csit / suites / l2switch / Inventory_Scalability_OF13 / __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=${ODL_SYSTEM_IP} --topo tree,${TOPO_TREE_DEPTH},${TOPO_TREE_FANOUT} --switch ovsk,protocols=OpenFlow13
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    ${TOOLS_SYSTEM_IP}    prompt=${DEFAULT_LINUX_PROMPT}    timeout=${numnodes*3}
19     Login With Public Key    ${TOOLS_SYSTEM_USER}    ${USER_HOME}/.ssh/${SSH_KEY}    any
20     Execute Command    sudo ovs-vsctl set-manager ptcp:6644
21     Execute Command    sudo mn -c
22     Write    ${start}
23     Read Until    mininet>
24
25 Stop Suite
26     Log    Stop mininet
27     Read
28     Write    exit
29     Read Until    >
30     Close Connection