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