Variables ../variables/Variables.py
Resource ./Utils.txt
-*** Variables ***
-${VTNC_FILENAME} 'distribution.vtn-coordinator'
-
*** Keywords ***
Get VtnCo
[Documentation] Download the VTN Coordinator from Controller VM
Log Download the VTN Coordinator bz2 file
SSHLibrary.Open_Connection ${CONTROLLER}
SSHLibrary.Login_With_Public_Key ${CONTROLLER_USER} ${USER_HOME}/.ssh/id_rsa any
- SSHLibrary.Get_File ${WORKSPACE}/${BUNDLEFOLDER}/externalapps/*vtn-coordinator*-bin.tar.bz2 ${WORKSPACE}/${VTNC_FILENAME}-bin.tar.bz2
+ ${VTNC_FILENAME}= Catenate SEPARATOR=/ ${WORKSPACE} vtn_coordinator.tar.bz2
+ SSHLibrary.Get_File ${WORKSPACE}/${BUNDLEFOLDER}/externalapps/*vtn-coordinator*-bin.tar.bz2 ${VTNC_FILENAME}
SSHLibrary.Close_Connection
SSHLibrary.Open_Connection ${MININET}
SSHLibrary.Login_With_Public_Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
- SSHLibrary.Put_File ${WORKSPACE}/${VTNC_FILENAME}-bin.tar.bz2 ${WORKSPACE}
+ SSHLibrary.Put_File ${VTNC_FILENAME} /tmp
SSHLibrary.Close_Connection
Start SuiteVtnCo
${vtnc_conn_id}= Open Connection ${MININET} prompt=${LINUX_PROMPT} timeout=30s
Set Suite Variable ${vtnc_conn_id}
Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/id_rsa any
- Execute Command tar -C/ -jxvf ${WORKSPACE}/${VTNC_FILENAME}-bin.tar.bz2
+ ${VTNC_FILENAME}= Catenate SEPARATOR=/ ${WORKSPACE} vtn_coordinator.tar.bz2
+ Execute Command tar -C/ -jxvf ${VTNC_FILENAME}
Execute Command /usr/local/vtn/sbin/db_setup
Execute Command /usr/local/vtn/bin/vtn_start
Execute Command /usr/local/vtn/bin/unc_dmctl status
Start SuiteVtnCoTest
[Documentation] Start the VTNCo Test
- Create Session session http://${VTNC}:8083 headers=${VTNC_HEADERS}
+ Create Session session http://${MININET}:8083 headers=${VTNC_HEADERS}
Stop SuiteVtnCoTest
[Documentation] Exit the VtnCo Test
Test Ping
[Arguments] ${host1} ${host2}
[Documentation] Ping hosts to check connectivity
- Write ${host1} ping -c 5 ${host2}
+ Write ${host1} ping -c 10 ${host2}
${result} Read Until mininet>
Should Contain ${result} 64 bytes
Verify the Controller Status is up
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 30s 2s Check Controller Status odc_test up
+ [Tags] exclude
+ Wait Until Keyword Succeeds 32s 2s Check Controller Status odc_test up
Add a Vtn Tenant1
[Documentation] Create Vtn Tenant1
- Wait Until Keyword Succeeds 10s 5s Add a VTN Tenant1 VTN_TEST
+ [Tags] exclude
+ Add a VTN Tenant1 VTN_TEST
Create VBR in VTN Tenant1
[Documentation] Create a VBR in Tenant1 as Vbridge1
+ [Tags] exclude
Create VBR in VTN Tenant1 Vbridge1 odc_test
Create VBRIF in VBRIDGE Vbridge1 Interface1
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface1 Interface1 201
Create VBRIF in VBRIDGE Vbridge1 Interface2
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface2 Interface2 201
Define Portmap for Interface1
[Documentation] Map Interface1 to a logical port
+ [Tags] exclude
Define Portmap for VBRIF Tenant1 Vbridge1 Interface1 PP-OF:openflow:3-s3-eth1
Define Portmap for Interface2
[Documentation] Map Interface2 to a logical port
+ [Tags] exclude
Define Portmap for VBRIF Tenant1 Vbridge1 Interface2 PP-OF:openflow:2-s2-eth1
Test Ping for Configuration1
[Documentation] ping between hosts in mininet
+ [Tags] exclude
Wait Until Keyword Succeeds 30s 10s Test Ping h1 h3
Delete a VTN Tenant1
[Documentation] Delete Vtn Tenant1
+ [Tags] exclude
Delete a VTN Tenant1
Delete a Controller odc1
*** Test Cases ***
Add a ODL Controller
[Documentation] Add a Controller odc1
- [Tags] exclude
Add a Controller odc_test ${CONTROLLER}
Verify the Controller Status is up
Delete a Controller
[Documentation] Delete Controller odc1
- [Tags] exclude
Remove Controller odc_test
Verify the Controller Status is up
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 30s 2s Check Controller Status odc_test up
+ [Tags] exclude
+ Wait Until Keyword Succeeds 32s 2s Check Controller Status odc_test up
Add a Vtn Tenant1
[Documentation] Create Vtn Tenant1
- Wait Until Keyword Succeeds 10s 5s Add a VTN Tenant1 VTN_TEST
+ [Tags] exclude
+ Add a VTN Tenant1 VTN_TEST
Create VBR in VTN Tenant1
[Documentation] Create a VBR in Tenant1 as Vbridge1
+ [Tags] exclude
Create VBR in VTN Tenant1 Vbridge1 odc_test
Update controller ip invalid
[Documentation] Update Controller ip to invalid
+ [Tags] exclude
Update Controller odc_test 10.0.0.1 invalid_IP
Verify the Controller State is down
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 30s 5s Check Controller Status odc_test down
+ [Tags] exclude
+ Wait Until Keyword Succeeds 40s 5s Check Controller Status odc_test down
Create VBRIF in VBRIDGE Vbridge1 Interface1
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface1 Interface1 202
Create VBRIF in VBRIDGE Vbridge1 Interface2
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface2 Interface2 202
Update controller ip valid
[Documentation] Update Controller ip to valid
+ [Tags] exclude
Update Controller odc_test ${CONTROLLER} valid_IP
Verify the Controller State is up
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 40s 2s Check Controller Status odc_test up
+ [Tags] exclude
+ Wait Until Keyword Succeeds 32s 2s Check Controller Status odc_test up
Define Portmap for Interface1
[Documentation] Map Interface1 to a logical port
- Wait Until Keyword Succeeds 10s 5s Define Portmap for VBRIF Tenant1 Vbridge1 Interface1
- ... PP-OF:openflow:2-s2-eth1
+ [Tags] exclude
+ Define Portmap for VBRIF Tenant1 Vbridge1 Interface1 PP-OF:openflow:2-s2-eth1
Define Portmap for Interface2
[Documentation] Map Interface2 to a logical port
+ [Tags] exclude
Define Portmap for VBRIF Tenant1 Vbridge1 Interface2 PP-OF:openflow:2-s2-eth2
Test Ping for Configuration1
[Documentation] ping between hosts in mininet
+ [Tags] exclude
Wait Until Keyword Succeeds 30s 10s Test Ping h1 h2
Delete a VTN Tenant1
[Documentation] Delete Vtn Tenant1
+ [Tags] exclude
Delete a VTN Tenant1
Delete a Controller odc1
Verify the Controller Status is up
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 30s 5s Check Controller Status odc_test up
+ [Tags] exclude
+ Wait Until Keyword Succeeds 32s 2s Check Controller Status odc_test up
Add a Vtn Tenant1
[Documentation] Create Vtn Tenant1
- Wait Until Keyword Succeeds 10s 5s Add a VTN Tenant1 VTN_TEST
+ [Tags] exclude
+ Add a VTN Tenant1 VTN_TEST
Create VBR in VTN Tenant1
[Documentation] Create a VBR in Tenant1 as Vbridge1
+ [Tags] exclude
Create VBR in VTN Tenant1 Vbridge1 odc_test
Create VBRIF in VBRIDGE Vbridge1 Interface1
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface1 Interface1 201
Create VBRIF in VBRIDGE Vbridge1 Interface2
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface2 Interface2 201
Define Portmap for Interface1
[Documentation] Map Interface1 to a logical port
+ [Tags] exclude
Define Portmap for VBRIF Tenant1 Vbridge1 Interface1 PP-OF:openflow:3-s3-eth1
Define Portmap for Interface2
[Documentation] Map Interface2 to a logical port
+ [Tags] exclude
Define Portmap for VBRIF Tenant1 Vbridge1 Interface2 PP-OF:openflow:2-s2-eth1
Test Ping for Configuration1
[Documentation] ping between hosts in mininet
+ [Tags] exclude
Wait Until Keyword Succeeds 30s 10s Test Ping h1 h3
Delete a VTN Tenant1
[Documentation] Delete Vtn Tenant1
+ [Tags] exclude
Delete a VTN Tenant1
Delete a Controller odc1
*** Test Cases ***
Add a ODL Controller
[Documentation] Add a Controller odc1
- [Tags] exclude
Add a Controller odc_test ${CONTROLLER}
Verify the Controller Status is up
Verify switch1
[Documentation] Get switch1
[Tags] exclude
- Wait Until Keyword Succeeds 30s 2s Verify Switch odc_test 00:00:00:00:00:00:00:01
+ Wait Until Keyword Succeeds 30s 2s Verify Switch odc_test openflow:1
Verify switch2
[Documentation] Get switch2
[Tags] exclude
- Wait Until Keyword Succeeds 30s 2s Verify Switch odc_test 00:00:00:00:00:00:00:02
+ Wait Until Keyword Succeeds 30s 2s Verify Switch odc_test openflow:2
Verify switch3
[Documentation] Get switch3
[Tags] exclude
- Wait Until Keyword Succeeds 30s 2s Verify Switch odc_test 00:00:00:00:00:00:00:03
+ Wait Until Keyword Succeeds 30s 2s Verify Switch odc_test openflow:3
Verify switchPort switch1
[Documentation] Get switchport/switch1
[Tags] exclude
- Wait Until Keyword Succeeds 30s 2s Verify SwitchPort odc_test 00:00:00:00:00:00:00:01
+ Wait Until Keyword Succeeds 16s 2s Verify SwitchPort odc_test openflow:1
Verify switchPort switch2
[Documentation] Get switchport/switch2
[Tags] exclude
- Wait Until Keyword Succeeds 30s 2s Verify SwitchPort odc_test 00:00:00:00:00:00:00:02
+ Wait Until Keyword Succeeds 16s 2s Verify SwitchPort odc_test openflow:2
Verify switchPort switch3
[Documentation] Get switchport/switch3
[Tags] exclude
- Wait Until Keyword Succeeds 30s 2s Verify SwitchPort odc_test 00:00:00:00:00:00:00:03
+ Wait Until Keyword Succeeds 16s 2s Verify SwitchPort odc_test openflow:3
Delete a Controller
[Documentation] Delete Controller odc1
- [Tags] exclude
Remove Controller odc_test
Verify the Controller Status is up
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 10s 5s Check Controller Status odc_test up
+ [Tags] exclude
+ Wait Until Keyword Succeeds 32s 2s Check Controller Status odc_test up
Add a Vtn Tenant1
[Documentation] Create Vtn Tenant1
+ [Tags] exclude
Add a VTN Tenant1 VTN_TEST
Create VBR in VTN Tenant1
[Documentation] Create a VBR in Tenant1 as Vbridge1
+ [Tags] exclude
Create VBR in VTN Tenant1 Vbridge1 odc_test
Update controller ip invalid
[Documentation] Update Controller ip to invalid
+ [Tags] exclude
Update Controller odc_test 10.0.0.1 invalid_IP
Verify the Controller State is down
[Documentation] Check Controller status
+ [Tags] exclude
Wait Until Keyword Succeeds 40s 5s Check Controller Status odc_test down
Create VBRIF in VBRIDGE Vbridge1 Interface1
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface1 Interface1 202
Create VBRIF in VBRIDGE Vbridge1 Interface2
[Documentation] Create an interface to Vbridge1
+ [Tags] exclude
Create VBRIF in VBR Tenant1 Vbridge1 Interface2 Interface2 202
Update controller ip valid
[Documentation] Update Controller ip to valid
+ [Tags] exclude
Update Controller odc_test ${CONTROLLER} valid_IP
Verify the Controller State is up
[Documentation] Check Controller status
- Wait Until Keyword Succeeds 40s 2s Check Controller Status odc_test up
+ [Tags] exclude
+ Wait Until Keyword Succeeds 32s 2s Check Controller Status odc_test up
Define Portmap for Interface1
[Documentation] Map Interface1 to a logical port
- Wait Until Keyword Succeeds 10s 5s Define Portmap for VBRIF Tenant1 Vbridge1 Interface1
- ... PP-OF:openflow:2-s2-eth1
+ [Tags] exclude
+ Define Portmap for VBRIF Tenant1 Vbridge1 Interface1 PP-OF:openflow:2-s2-eth1
Define Portmap for Interface2
[Documentation] Map Interface2 to a logical port
- Wait Until Keyword Succeeds 10s 5s Define Portmap for VBRIF Tenant1 Vbridge1 Interface2
- ... PP-OF:openflow:2-s2-eth2
+ [Tags] exclude
+ Define Portmap for VBRIF Tenant1 Vbridge1 Interface2 PP-OF:openflow:2-s2-eth2
Test Ping for Configuration1
[Documentation] ping between hosts in mininet
+ [Tags] exclude
Wait Until Keyword Succeeds 30s 10s Test Ping h1 h2
Delete a VTN Tenant1
[Documentation] Delete Vtn Tenant1
+ [Tags] exclude
Delete a VTN Tenant1
Delete a Controller odc1