cleaning up system variables
[integration/test.git] / csit / suites / lacp / Lacp_Feature_OF13 / __init__.robot
1 *** Settings ***
2 Documentation     Test suite for MD-SAL LACP mininet OF13
3 Suite Setup       Start Suite
4 Suite Teardown    Stop Suite
5 Library           SSHLibrary
6 Variables         ../../../variables/Variables.py
7
8 *** Variables ***
9 ${start}          sudo mn --custom LACP_custom1.py --switch ovsk,protocols=OpenFlow13
10 ${bond}           "/etc/modprobe.d/bonding.conf"
11
12 *** Keywords ***
13 Start Suite
14     Log    Start mininet
15     ${mininet_session_id}=    Open Connection    ${TOOLS_SYSTEM_IP}    prompt=${DEFAULT_LINUX_PROMPT}    timeout=30s
16     Set Suite Variable    ${mininet_session_id}
17     Login With Public Key    ${TOOLS_SYSTEM_USER}    ${USER_HOME}/.ssh/${SSH_KEY}    any
18     Execute Command    sudo ovs-vsctl set-manager ptcp:6633
19     Execute Command    sudo rm -rf ${bond}
20     Put File    ${CURDIR}/LACP_custom1.py
21     Put File    ${CURDIR}/h1-bond0.sh
22     Put File    ${CURDIR}/h2-bond0.sh
23     Put File    ${CURDIR}/m
24     Put File    ${CURDIR}/bonding.conf
25     Execute Command    sudo cp bonding.conf ${bond}
26     Execute Command    sed -i -- 's/CONTROLLER/${ODL_SYSTEM_IP}/g' LACP_custom1.py
27     Write    ${start}
28     Read Until    mininet>
29
30 Stop Suite
31     Log    Stop mininet
32     Switch Connection    ${mininet_session_id}
33     Read
34     Write    exit
35     Execute Command    sed -i -- 's/${ODL_SYSTEM_IP}/CONTROLLER/g' LACP_custom1.py
36     Execute Command    sudo rm -rf ${bond}
37     Close Connection