8bf7a108ee988a769acefe04a989a0660d74376f
[integration/test.git] / test / csit / suites / l2switch / Flow_Programming_OF13 / __init__.robot
1 *** Settings ***
2 Documentation     Test suite for L2switch's Flow Programming using mininet OF13
3 Suite Setup       Start Suite
4 Suite Teardown    Stop Suite
5 Library     SSHLibrary
6
7 *** Variables ***
8 ${start}=  sudo mn --controller=remote,ip=${CONTROLLER} --topo=linear,3 --switch ovsk,protocols=OpenFlow13
9
10 ** Keywords ***
11 Start Suite
12     Log    Start mininet
13     Open Connection   ${MININET}     prompt=>   timeout=30
14     Login With Public Key    ${MININET_USER}   ${USER_HOME}/.ssh/id_rsa   any
15     Write    sudo ovs-vsctl set-manager ptcp:6644
16     Read Until    >
17     Write    sudo mn -c
18     Read Until    >
19     Read Until    >
20     Read Until    >
21     Write    ${start}
22     Read Until    mininet>
23     Sleep       15
24 Stop Suite
25     Log    Stop mininet
26     Read
27     Write    exit
28     Read Until    >
29     Close All Connections