Tidied new and updated suites 72/39172/2
authorJozef Behran <jbehran@cisco.com>
Fri, 20 May 2016 11:29:49 +0000 (13:29 +0200)
committerVratko Polák <vrpolak@cisco.com>
Tue, 24 May 2016 13:10:39 +0000 (13:10 +0000)
Change-Id: I28164bd4bbe73cee68c02c487a955de5bbc46479
Signed-off-by: Jozef Behran <jbehran@cisco.com>
19 files changed:
csit/libraries/ClusterKeywords.robot
csit/libraries/DevstackUtils.robot
csit/libraries/OpenStackOperations.robot
csit/libraries/VtnMaKeywordsLi.robot
csit/suites/openstack/clustering/01_l2_tests.robot
csit/suites/openstack/clustering/02_l3_tests.robot
csit/suites/openstack/connectivity/01_l2_tests.robot
csit/suites/openstack/connectivity/02_l3_tests.robot
csit/suites/ovsdb/Devstack_Tempest_Tests/01__single_node_devstack_tempest_tests.robot
csit/suites/ovsdb/Devstack_Tempest_Tests/02__additional_flows_verification_tests.robot
csit/suites/sfc/SFC_Basic/010__sfc_service_functions.robot
csit/suites/sfc/SFC_Basic/020__sfc_service_forwarders.robot
csit/suites/sfc/SFC_Basic/030__sfc_service_nodes.robot
csit/suites/sfc/SFC_Basic/040__sfc_service_chains.robot
csit/suites/sfc/SFC_Basic/050__sfc_service_schedule_types.robot
csit/suites/sfc/SFC_Basic/060__sfc_service_paths.robot
csit/suites/sfc/SFC_Basic/070__sfc_rendered_service_paths.robot
csit/suites/vtn/VTN_Mgr_OF10/010__vtn_manager_flowfilter_out.robot
csit/suites/vtn/VTN_Mgr_OF13/010__vtn_manager_flowfilter_out.robot

index 75ae6af46d6cf199a5ce40ec2bcaabd4cd111ed1..011ce420fa1b44e9030ae89e62cb9c1db5c4908c 100644 (file)
@@ -73,8 +73,9 @@ Get Device Entity Owner And Candidates Indexes
     ${candidates_list}=    Create List
     ${data}=    Utils.Get Data From URI    ${session}    /restconf/operational/entity-owners:entity-owners
     Log    ${data}
-    ${clear_data}=    Run Keyword If    '${device_type}' == 'openflow'    Extract OpenFlow Device Data    ${data}    ELSE IF    '${device_type}' == 'ovsdb'
-    ...    Extract Ovsdb Device Data    ${data}    ELSE    Fail    Not recognized device type: ${device_type}
+    ${clear_data}=    Run Keyword If    '${device_type}' == 'openflow'    Extract OpenFlow Device Data    ${data}
+    ...    ELSE IF    '${device_type}' == 'ovsdb'    Extract Ovsdb Device Data    ${data}
+    ...    ELSE    Fail    Not recognized device type: ${device_type}
     ${json}=    RequestsLibrary.To Json    ${clear_data}
     ${entity_type_list}=    Get From Dictionary    &{json}[entity-owners]    entity-type
     ${entity_type_index}=    Get Index From List Of Dictionaries    ${entity_type_list}    type    ${device_type}
@@ -293,8 +294,8 @@ Get Controller Sync Status
     ${value}=    Get From Dictionary    ${json}    value
     ${OperSyncStatus}=    Get From Dictionary    ${value}    SyncStatus
     Log    Operational Sync Status: ${OperSyncStatus}
-    Run Keyword If    ${OperSyncStatus} and ${ConfSyncStatus}    Set Test Variable    ${SyncStatus}    ${TRUE}    ELSE    Set Test Variable
-    ...    ${SyncStatus}    ${FALSE}
+    Run Keyword If    ${OperSyncStatus} and ${ConfSyncStatus}    Set Test Variable    ${SyncStatus}    ${TRUE}
+    ...    ELSE    Set Test Variable    ${SyncStatus}    ${FALSE}
     [Return]    ${SyncStatus}
 
 Clean One Or More Journals
index c3caf13ff562f3cf32421d642d3ea93ce18c677b..71be69da92a7dea938d9903daa9399b485f9b767 100644 (file)
@@ -35,8 +35,8 @@ Run Tempest Tests
 
 Devstack Suite Setup Tests
     [Arguments]    ${source_pwd}=no
-    [Documentation]  Login to  the Openstack Control Node to run tempest suite
-    ${devstack_conn_id}=   SSHLibrary.Open Connection    ${OS_CONTROL_NODE_IP}    prompt=${DEFAULT_LINUX_PROMPT}
+    [Documentation]    Login to the Openstack Control Node to run tempest suite
+    ${devstack_conn_id}=    SSHLibrary.Open Connection    ${OS_CONTROL_NODE_IP}    prompt=${DEFAULT_LINUX_PROMPT}
     Set Suite Variable    ${devstack_conn_id}
     Set Suite Variable    ${source_pwd}
     Log    ${devstack_conn_id}
@@ -46,7 +46,7 @@ Devstack Suite Setup Tests
 Devstack Suite Setup
     [Arguments]    ${source_pwd}=no
     [Documentation]    Login to the Openstack Control Node to run tempest suite
-    ${devstack_conn_id}=   SSHLibrary.Open Connection    ${DEVSTACK_SYSTEM_IP}    prompt=${DEFAULT_LINUX_PROMPT}
+    ${devstack_conn_id}=    SSHLibrary.Open Connection    ${DEVSTACK_SYSTEM_IP}    prompt=${DEFAULT_LINUX_PROMPT}
     Set Suite Variable    ${devstack_conn_id}
     Set Suite Variable    ${source_pwd}
     Log    ${devstack_conn_id}
index 48f7445fd1598877d97cd08c3f385ee300f3a2bf..06ca39987fb35811f17156ad600153beb22ab328 100644 (file)
@@ -1,20 +1,20 @@
 *** Settings ***
-Documentation    Openstack library. This library is useful for tests to create network, subnet, router and vm instances
-Library    SSHLibrary
-Resource    Utils.robot
-Variables    ../variables/Variables.py
+Documentation     Openstack library. This library is useful for tests to create network, subnet, router and vm instances
+Library           SSHLibrary
+Resource          Utils.robot
+Variables         ../variables/Variables.py
 
 *** Keywords ***
 Source Password
-    [Arguments]        ${force}=no
+    [Arguments]    ${force}=no
     [Documentation]    Sourcing the Openstack PAsswords for neutron configurations
-    Run Keyword If    '${source_pwd}' == 'yes' or '${force}' == 'yes'     Write Commands Until Prompt    cd ${DEVSTACK_DEPLOY_PATH}; source openrc admin admin
+    Run Keyword If    '${source_pwd}' == 'yes' or '${force}' == 'yes'    Write Commands Until Prompt    cd ${DEVSTACK_DEPLOY_PATH}; source openrc admin admin
 
 Create Network
     [Arguments]    ${network_name}
     [Documentation]    Create Network with neutron request.
     Switch Connection    ${devstack_conn_id}
-    Source Password      force=yes
+    Source Password    force=yes
     ${output}=    Write Commands Until Prompt    neutron -v net-create ${network_name}    30s
     Log    ${output}
     Should Contain    ${output}    Created a new network
@@ -81,13 +81,13 @@ Delete Vm Instance
     Switch Connection    ${devstack_conn_id}
     Source Password
     ${output}=    Write Commands Until Prompt    nova delete ${vm_name}
-    Should Contain     ${output}     ${vm_name}
+    Should Contain    ${output}    ${vm_name}
 
 Get Net Id
     [Arguments]    ${network_name}
     [Documentation]    Retrieve the net id for the given network name to create specific vm instance
     Switch Connection    ${devstack_conn_id}
-    Source Password     force=yes
+    Source Password    force=yes
     ${output}=    Write Commands Until Prompt    neutron net-list | grep "${network_name}" | get_field 1
     Log    ${output}
     ${splitted_output}=    Split String    ${output}    ${EMPTY}
@@ -100,7 +100,7 @@ Create Vm Instances
     [Documentation]    Create X Vm Instance with the net id of the Netowrk.
     Switch Connection    ${devstack_conn_id}
     Source Password
-    ${net_id}=    Get Net Id      ${net_name}
+    ${net_id}=    Get Net Id    ${net_name}
     : FOR    ${VmElement}    IN    @{vm_instance_names}
     \    ${output}=    Write Commands Until Prompt    nova boot --image ${image} --flavor ${flavor} --nic net-id=${net_id} ${VmElement}
     \    Log    ${output}
@@ -111,7 +111,7 @@ Verify VM Is ACTIVE
     [Documentation]    Run these commands to check whether the created vm instance is active or not.
     ${output}=    Write Commands Until Prompt    nova show ${vm_name} | grep OS-EXT-STS:vm_state
     Log    ${output}
-    Should Contain     ${output}    active
+    Should Contain    ${output}    active
 
 View Vm Console
     [Arguments]    ${vm_instance_names}
@@ -127,7 +127,7 @@ Ping Vm From DHCP Namespace
     [Documentation]    Reach all Vm Instance with the net id of the Netowrk.
     Log    ${vm_ip}
     Switch Connection    ${devstack_conn_id}
-    ${net_id}=    Get Net Id      ${net_name}
+    ${net_id}=    Get Net Id    ${net_name}
     Log    ${net_id}
     ${output}=    Write Commands Until Prompt    sudo ip netns exec qdhcp-${net_id} ping -c 3 ${vm_ip}    20s
     Log    ${output}
@@ -138,7 +138,7 @@ Ping From DHCP Should Not Succeed
     [Documentation]    Should Not Reach Vm Instance with the net id of the Netowrk.
     Log    ${vm_ip}
     Switch Connection    ${devstack_conn_id}
-    ${net_id}=    Get Net Id      ${net_name}
+    ${net_id}=    Get Net Id    ${net_name}
     Log    ${net_id}
     ${output}=    Write Commands Until Prompt    sudo ip netns exec qdhcp-${net_id} ping -c 3 ${vm_ip}    20s
     Log    ${output}
@@ -164,73 +164,74 @@ Close Vm Instance
 
 Check If Console Is VmInstance
     [Arguments]    ${console}=cirros
-    [Documentation]     Check if the session has been able to login to the VM instance
-    ${output}=       Write Commands Until Expected Prompt      id       ${OS_SYSTEM_PROMPT}
+    [Documentation]    Check if the session has been able to login to the VM instance
+    ${output}=    Write Commands Until Expected Prompt    id    ${OS_SYSTEM_PROMPT}
     Should Contain    ${output}    ${console}
 
 Exit From Vm Console
-    [Documentation]     Check if the session has been able to login to the VM instance and exit the instance
-    ${rcode}=    Run Keyword And Return Status      Check If Console Is VmInstance    cirros
-    Run Keyword If     ${rcode}     Write Commands Until Prompt     exit
+    [Documentation]    Check if the session has been able to login to the VM instance and exit the instance
+    ${rcode}=    Run Keyword And Return Status    Check If Console Is VmInstance    cirros
+    Run Keyword If    ${rcode}    Write Commands Until Prompt    exit
     Get OvsDebugInfo
 
 Check Ping
-    [Arguments]     ${ip_address}
-    [Documentation]     Run Ping command on the IP available as argument
-    ${output}=   Write Commands Until Expected Prompt    ping -c 3 ${ip_address}    ${OS_SYSTEM_PROMPT}
-    Should Contain     ${output}     64 bytes
+    [Arguments]    ${ip_address}
+    [Documentation]    Run Ping command on the IP available as argument
+    ${output}=    Write Commands Until Expected Prompt    ping -c 3 ${ip_address}    ${OS_SYSTEM_PROMPT}
+    Should Contain    ${output}    64 bytes
 
 Check Metadata Access
-    [Documentation]      Try curl on the Metadataurl and check if it is okay
-    ${output}=   Write Commands Until Expected Prompt    curl -i http://169.254.169.254    ${OS_SYSTEM_PROMPT}
-    Should Contain     ${output}     200
+    [Documentation]    Try curl on the Metadataurl and check if it is okay
+    ${output}=    Write Commands Until Expected Prompt    curl -i http://169.254.169.254    ${OS_SYSTEM_PROMPT}
+    Should Contain    ${output}    200
 
 Test Operations From Vm Instance
-    [Arguments]    ${net_name}    ${src_ip}    ${list_of_local_dst_ips}    ${l2_or_l3}=l2    ${list_of_external_dst_ips}=${NONE}    ${user}=cirros    ${password}=cubswin:)
+    [Arguments]    ${net_name}    ${src_ip}    ${list_of_local_dst_ips}    ${l2_or_l3}=l2    ${list_of_external_dst_ips}=${NONE}    ${user}=cirros
+    ...    ${password}=cubswin:)
     [Documentation]    Login to the vm instance using ssh in the network.
     Switch Connection    ${devstack_conn_id}
     Source Password
-    ${net_id}=    Get Net Id      ${net_name}
-    ${output}=   Write Commands Until Expected Prompt    sudo ip netns exec qdhcp-${net_id} ssh ${user}@${src_ip} -o ConnectTimeout=10 -o StrictHostKeyChecking=no      d:
+    ${net_id}=    Get Net Id    ${net_name}
+    ${output}=    Write Commands Until Expected Prompt    sudo ip netns exec qdhcp-${net_id} ssh ${user}@${src_ip} -o ConnectTimeout=10 -o StrictHostKeyChecking=no    d:
     Log    ${output}
     ${output}=    Write Commands Until Expected Prompt    ${password}    ${OS_SYSTEM_PROMPT}
     Log    ${output}
-    ${rcode}=    Run Keyword And Return Status      Check If Console Is VmInstance
-    Run Keyword If     ${rcode}     Write Commands Until Expected Prompt    ifconfig    ${OS_SYSTEM_PROMPT}
-    Run Keyword If     ${rcode}     Write Commands Until Expected Prompt    route    ${OS_SYSTEM_PROMPT}
+    ${rcode}=    Run Keyword And Return Status    Check If Console Is VmInstance
+    Run Keyword If    ${rcode}    Write Commands Until Expected Prompt    ifconfig    ${OS_SYSTEM_PROMPT}
+    Run Keyword If    ${rcode}    Write Commands Until Expected Prompt    route    ${OS_SYSTEM_PROMPT}
     ${dest_vm}=    Get From List    ${list_of_local_dst_ips}    0
     Log    ${dest_vm}
-    Run Keyword If     ${rcode}     Check Ping      ${dest_vm}
+    Run Keyword If    ${rcode}    Check Ping    ${dest_vm}
     ${dest_dhcp}=    Get From List    ${list_of_local_dst_ips}    1
     Log    ${dest_dhcp}
-    Run Keyword If     ${rcode}     Check Ping      ${dest_dhcp}
+    Run Keyword If    ${rcode}    Check Ping    ${dest_dhcp}
     ${dest_vm}=    Get From List    ${list_of_local_dst_ips}    2
     Log    ${dest_vm}
-    Run Keyword If     ${rcode}     Check Ping      ${dest_vm}
-    Run Keyword If     ${rcode}     Check Metadata Access
+    Run Keyword If    ${rcode}    Check Ping    ${dest_vm}
+    Run Keyword If    ${rcode}    Check Metadata Access
     Run Keyword If    '${l2_or_l3}' == 'l3'    Ping Other Instances    ${list_of_external_dst_ips}
-    [Teardown]      Exit From Vm Console
+    [Teardown]    Exit From Vm Console
 
 Ping Other Instances
     [Arguments]    ${list_of_external_dst_ips}
     [Documentation]    Check reachability with other network's instances.
-    ${rcode}=    Run Keyword And Return Status      Check If Console Is VmInstance
+    ${rcode}=    Run Keyword And Return Status    Check If Console Is VmInstance
     ${dest_vm}=    Get From List    ${list_of_external_dst_ips}    0
     Log    ${dest_vm}
-    Run Keyword If     ${rcode}     Check Ping      ${dest_vm}
+    Run Keyword If    ${rcode}    Check Ping    ${dest_vm}
     ${dest_dhcp}=    Get From List    ${list_of_external_dst_ips}    1
     Log    ${dest_dhcp}
-    Run Keyword If     ${rcode}     Check Ping      ${dest_dhcp}
+    Run Keyword If    ${rcode}    Check Ping    ${dest_dhcp}
     ${dest_vm}=    Get From List    ${list_of_external_dst_ips}    2
     Log    ${dest_vm}
-    Run Keyword If     ${rcode}     Check Ping      ${dest_vm}
+    Run Keyword If    ${rcode}    Check Ping    ${dest_vm}
 
 Create Router
     [Arguments]    ${router_name}
     [Documentation]    Create Router and Add Interface to the subnets.
     Switch Connection    ${devstack_conn_id}
     Source Password
-    ${output}=    Write Commands Until Prompt    neutron -v router-create ${router_name}     30s
+    ${output}=    Write Commands Until Prompt    neutron -v router-create ${router_name}    30s
     Should Contain    ${output}    Created a new router
 
 Add Router Interface
@@ -259,18 +260,18 @@ Delete Router
 Get DumpFlows And Ovsconfig
     [Arguments]    ${openstack_node_ip}
     [Documentation]    Get the OvsConfig and Flow entries from OVS from the Openstack Node
-    Log     ${openstack_node_ip}
+    Log    ${openstack_node_ip}
     SSHLibrary.Open Connection    ${openstack_node_ip}    prompt=${DEFAULT_LINUX_PROMPT}
     Utils.Flexible SSH Login    ${OS_USER}    ${DEVSTACK_SYSTEM_PASSWORD}
     SSHLibrary.Set Client Configuration    timeout=${default_devstack_prompt_timeout}
-    Write Commands Until Expected Prompt     sudo ovs-vsctl show       ]>
-    Write Commands Until Expected Prompt     sudo ovs-ofctl dump-flows br-int -OOpenFlow13     ]>
+    Write Commands Until Expected Prompt    sudo ovs-vsctl show    ]>
+    Write Commands Until Expected Prompt    sudo ovs-ofctl dump-flows br-int -OOpenFlow13    ]>
 
 Get OvsDebugInfo
     [Documentation]    Get the OvsConfig and Flow entries from all Openstack nodes
-    Run Keyword If     0 < ${NUM_OS_SYSTEM}       Get DumpFlows And Ovsconfig     ${OS_CONTROL_NODE_IP}
-    Run Keyword If     1 < ${NUM_OS_SYSTEM}       Get DumpFlows And Ovsconfig     ${OS_COMPUTE_1_IP}
-    Run Keyword If     2 < ${NUM_OS_SYSTEM}       Get DumpFlows And Ovsconfig     ${OS_COMPUTE_2_IP}
+    Run Keyword If    0 < ${NUM_OS_SYSTEM}    Get DumpFlows And Ovsconfig    ${OS_CONTROL_NODE_IP}
+    Run Keyword If    1 < ${NUM_OS_SYSTEM}    Get DumpFlows And Ovsconfig    ${OS_COMPUTE_1_IP}
+    Run Keyword If    2 < ${NUM_OS_SYSTEM}    Get DumpFlows And Ovsconfig    ${OS_COMPUTE_2_IP}
 
 Show Debugs
     [Arguments]    ${vm_indices}
index 2f38d2f92e4d414ddb5ca9f832975cfbd176fe6b..8762d4a63e3de8743f72b0edfb33db50bd0662c2 100644 (file)
@@ -237,7 +237,7 @@ Delete a interface
 Start vlan_topo
     [Arguments]    ${OF}
     [Documentation]    Create custom topology for vlan functionality
-    Install Package On Ubuntu System     vlan
+    Install Package On Ubuntu System    vlan
     Run Keyword If    '${OF}' == 'OF13'    Start Mininet    ${TOOLS_SYSTEM_IP}    ${vlan_topo_13}    ${CURDIR}/${CREATE_VLAN_TOPOLOGY_FILE_PATH}
     ...    ELSE IF    '${OF}' == 'OF10'    Start Mininet    ${TOOLS_SYSTEM_IP}    ${vlan_topo_10}    ${CURDIR}/${CREATE_VLAN_TOPOLOGY_FILE_PATH}
 
index 4cd41f281939f06dd397126bfbb3232f3ef0a8e7..13705935923701098badf03972b2bbc5fe902e1d 100644 (file)
@@ -1,29 +1,29 @@
 *** Settings ***
-Documentation    Test suite to verify packet flows between vm instances.
-Suite Setup    Devstack Suite Setup Tests     source_pwd=yes
-Suite Teardown      Close All Connections
-Library    SSHLibrary
-Library    OperatingSystem
-Library    RequestsLibrary
-Library    Collections
-Resource    ../../../libraries/Utils.robot
-Resource    ../../../libraries/OpenStackOperations.robot
-Resource    ../../../libraries/DevstackUtils.robot
-Resource    ../../../libraries/OVSDB.robot
-Library    ../../../libraries/Common.py
-Variables    ../../../variables/Variables.py
-Resource    ../../../libraries/ClusterKeywords.robot
+Documentation     Test suite to verify packet flows between vm instances.
+Suite Setup       Devstack Suite Setup Tests    source_pwd=yes
+Suite Teardown    Close All Connections
+Library           SSHLibrary
+Library           OperatingSystem
+Library           RequestsLibrary
+Library           Collections
+Resource          ../../../libraries/Utils.robot
+Resource          ../../../libraries/OpenStackOperations.robot
+Resource          ../../../libraries/DevstackUtils.robot
+Resource          ../../../libraries/OVSDB.robot
+Library           ../../../libraries/Common.py
+Variables         ../../../variables/Variables.py
+Resource          ../../../libraries/ClusterKeywords.robot
 
 *** Variables ***
 @{NETWORKS_NAME}    l2_net_1    l2_net_2
 @{SUBNETS_NAME}    l2_sub_net_1    l2_sub_net_2
-@{NET_1_VM_INSTANCES}    VmInstance1_l2_net_1    VmInstance2_net_1     VmInstance3_net_1
-@{NET_2_VM_INSTANCES}    VmInstance1_l2_net_2    VmInstance2_net_2     VmInstance3_net_2
-@{NET_1_VM_IPS}    70.0.0.3    70.0.0.4     70.0.0.5
-@{NET_2_VM_IPS}    80.0.0.3    80.0.0.4     80.0.0.5
+@{NET_1_VM_INSTANCES}    VmInstance1_l2_net_1    VmInstance2_net_1    VmInstance3_net_1
+@{NET_2_VM_INSTANCES}    VmInstance1_l2_net_2    VmInstance2_net_2    VmInstance3_net_2
+@{NET_1_VM_IPS}    70.0.0.3    70.0.0.4    70.0.0.5
+@{NET_2_VM_IPS}    80.0.0.3    80.0.0.4    80.0.0.5
 @{VM_IPS_NOT_DELETED}    70.0.0.4
 @{GATEWAY_IPS}    70.0.0.1    80.0.0.1
-@{DHCP_IPS}    70.0.0.2    80.0.0.2
+@{DHCP_IPS}       70.0.0.2    80.0.0.2
 @{cluster_down_list}    1    2
 @{SUBNETS_RANGE}    70.0.0.0/24    80.0.0.0/24
 
@@ -56,7 +56,7 @@ Create Subnets For l2_net_2
     Create SubNet    l2_net_2    l2_sub_net_2    @{SUBNETS_RANGE}[1]
 
 Take Down ODL1
-    [Documentation]   Kill the karaf in First Controller
+    [Documentation]    Kill the karaf in First Controller
     ClusterKeywords.Kill Multiple Controllers    1
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Remove Values From List    ${new_cluster_list}    1
@@ -66,16 +66,16 @@ Create Vm Instances For l2_net_1
     [Documentation]    Create Vm instances using flavor and image names for a network.
     Log    ${devstack_conn_id}
     Create Vm Instances    l2_net_1    ${NET_1_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_1_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_1_VM_INSTANCES}
 
 Bring Up ODL1
-    [Documentation]  Bring up ODL1 again
+    [Documentation]    Bring up ODL1 again
     ClusterKeywords.Start Multiple Controllers    300s    1
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Set Suite Variable    ${new_cluster_list}
 
 Take Down ODL2
-    [Documentation]   Kill the karaf in Second Controller
+    [Documentation]    Kill the karaf in Second Controller
     ClusterKeywords.Kill Multiple Controllers    2
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Remove Values From List    ${new_cluster_list}    2
@@ -83,41 +83,41 @@ Take Down ODL2
 
 Create Vm Instances For l2_net_2
     [Documentation]    Create Vm instances using flavor and image names for a network.
-    Create Vm Instances     l2_net_2    ${NET_2_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_2_VM_INSTANCES}
+    Create Vm Instances    l2_net_2    ${NET_2_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_2_VM_INSTANCES}
 
 Bring Up ODL2
-    [Documentation]  Bring up ODL2 again
+    [Documentation]    Bring up ODL2 again
     ClusterKeywords.Start Multiple Controllers    300s    2
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Set Suite Variable    ${new_cluster_list}
 
 Ping Vm Instance1 In l2_net_1
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_net_1    @{NET_1_VM_IPS}[0]
+    Ping Vm From DHCP Namespace    l2_net_1    @{NET_1_VM_IPS}[0]
 
 Ping Vm Instance2 In l2_net_1
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_net_1    @{NET_1_VM_IPS}[1]
+    Ping Vm From DHCP Namespace    l2_net_1    @{NET_1_VM_IPS}[1]
 
 Ping Vm Instance3 In l2_net_1
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_net_1    @{NET_1_VM_IPS}[2]
+    Ping Vm From DHCP Namespace    l2_net_1    @{NET_1_VM_IPS}[2]
 
 Ping Vm Instance1 In l2_net_2
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_net_2    @{NET_2_VM_IPS}[0]
+    Ping Vm From DHCP Namespace    l2_net_2    @{NET_2_VM_IPS}[0]
 
 Ping Vm Instance2 In l2_net_2
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_net_2    @{NET_2_VM_IPS}[1]
+    Ping Vm From DHCP Namespace    l2_net_2    @{NET_2_VM_IPS}[1]
 
 Ping Vm Instance3 In l2_net_2
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_net_2    @{NET_2_VM_IPS}[2]
+    Ping Vm From DHCP Namespace    l2_net_2    @{NET_2_VM_IPS}[2]
 
 Take Down ODL3
-    [Documentation]   Kill the karaf in Third Controller
+    [Documentation]    Kill the karaf in Third Controller
     ClusterKeywords.Kill Multiple Controllers    3
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Remove Values From List    ${new_cluster_list}    3
@@ -125,53 +125,53 @@ Take Down ODL3
 
 Connectivity Tests From Vm Instance1 In l2_net_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_net_1     @{NET_1_VM_IPS}[0]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_net_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l2_net_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_net_1     @{NET_1_VM_IPS}[1]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_net_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l2_net_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_net_1     @{NET_1_VM_IPS}[2]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_net_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}
 
 Bring Up ODL3
-    [Documentation]  Bring up ODL3 again
+    [Documentation]    Bring up ODL3 again
     ClusterKeywords.Start Multiple Controllers    300s    3
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Set Suite Variable    ${new_cluster_list}
 
 Take Down ODL1 and ODL2
-    [Documentation]   Kill the karaf in First and Second Controller
+    [Documentation]    Kill the karaf in First and Second Controller
     : FOR    ${index}    IN    @{cluster_down_list}
     \    ClusterKeywords.Kill Multiple Controllers    ${index}
 
 Connectivity Tests From Vm Instance1 In l2_net_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]     @{NET_2_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_net_2     @{NET_2_VM_IPS}[0]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_net_2    @{NET_2_VM_IPS}[0]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l2_net_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]     @{NET_2_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_net_2     @{NET_2_VM_IPS}[1]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_net_2    @{NET_2_VM_IPS}[1]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l2_net_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]     @{NET_2_VM_IPS}[1]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[1]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_net_2     @{NET_2_VM_IPS}[2]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_net_2    @{NET_2_VM_IPS}[2]    ${dst_ip_list}
 
 Bring Up ODL1 and ODL2
-    [Documentation]  Bring up ODL1 and ODL2 again.
+    [Documentation]    Bring up ODL1 and ODL2 again.
     : FOR    ${index}    IN    @{cluster_down_list}
     \    ClusterKeywords.Start Multiple Controllers    300s    ${index}
 
index 0b82ee7179ed0b723132c4e887efe5ec74423353..53a29103e2e313bb41b96de8a8889ec0b3258dce 100644 (file)
@@ -1,24 +1,24 @@
 *** Settings ***
-Documentation    Test suite to check connectivity in L3 using routers.
-Suite Setup    Devstack Suite Setup Tests     source_pwd=yes
-Suite Teardown      Close All Connections
-Library    SSHLibrary
-Library    OperatingSystem
-Library    RequestsLibrary
-Resource    ../../../libraries/Utils.robot
-Resource    ../../../libraries/OpenStackOperations.robot
-Resource    ../../../libraries/DevstackUtils.robot
-Resource    ../../../libraries/ClusterKeywords.robot
+Documentation     Test suite to check connectivity in L3 using routers.
+Suite Setup       Devstack Suite Setup Tests    source_pwd=yes
+Suite Teardown    Close All Connections
+Library           SSHLibrary
+Library           OperatingSystem
+Library           RequestsLibrary
+Resource          ../../../libraries/Utils.robot
+Resource          ../../../libraries/OpenStackOperations.robot
+Resource          ../../../libraries/DevstackUtils.robot
+Resource          ../../../libraries/ClusterKeywords.robot
 
 *** Variables ***
 @{NETWORKS_NAME}    l3_net_1    l3_net_2
 @{SUBNETS_NAME}    l3_sub_net_1    l3_sub_net_2
-@{NET_1_VM_INSTANCES}    VmInstance1_net_1    VmInstance2_net_1       VmInstance3_net_1
-@{NET_2_VM_INSTANCES}    VmInstance1_net_2    VmInstance2_net_2       VmInstance3_net_2
-@{NET_1_VM_IPS}    90.0.0.3    90.0.0.4      90.0.0.5
+@{NET_1_VM_INSTANCES}    VmInstance1_net_1    VmInstance2_net_1    VmInstance3_net_1
+@{NET_2_VM_INSTANCES}    VmInstance1_net_2    VmInstance2_net_2    VmInstance3_net_2
+@{NET_1_VM_IPS}    90.0.0.3    90.0.0.4    90.0.0.5
 @{NET_2_VM_IPS}    100.0.0.3    100.0.0.4    100.0.0.5
 @{GATEWAY_IPS}    90.0.0.1    100.0.0.1
-@{DHCP_IPS}    90.0.0.2    100.0.0.2
+@{DHCP_IPS}       90.0.0.2    100.0.0.2
 @{SUBNETS_RANGE}    90.0.0.0/24    100.0.0.0/24
 @{odl_1_and_2_down}    1    2
 @{odl_2_and_3_down}    2    3
@@ -38,7 +38,7 @@ Create Subnets For l3_net_2
     Create SubNet    l3_net_2    l3_sub_net_2    @{SUBNETS_RANGE}[1]
 
 Take Down ODL1
-    [Documentation]   Kill the karaf in First Controller
+    [Documentation]    Kill the karaf in First Controller
     ClusterKeywords.Kill Multiple Controllers    1
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Remove Values From List    ${new_cluster_list}    1
@@ -47,16 +47,16 @@ Take Down ODL1
 Create Vm Instances For l3_net_1
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
     Create Vm Instances    l3_net_1    ${NET_1_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_1_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_1_VM_INSTANCES}
 
 Bring Up ODL1
-    [Documentation]  Bring up ODL1 again
+    [Documentation]    Bring up ODL1 again
     ClusterKeywords.Start Multiple Controllers    300s    1
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Set Suite Variable    ${new_cluster_list}
 
 Take Down ODL2
-    [Documentation]   Kill the karaf in Second Controller
+    [Documentation]    Kill the karaf in Second Controller
     ClusterKeywords.Kill Multiple Controllers    2
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Remove Values From List    ${new_cluster_list}    2
@@ -64,17 +64,17 @@ Take Down ODL2
 
 Create Vm Instances For l3_net_2
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
-    Create Vm Instances     l3_net_2      ${NET_2_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_2_VM_INSTANCES}
+    Create Vm Instances    l3_net_2    ${NET_2_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_2_VM_INSTANCES}
 
 Bring Up ODL2
-    [Documentation]  Bring up ODL2 again
+    [Documentation]    Bring up ODL2 again
     ClusterKeywords.Start Multiple Controllers    300s    2
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Set Suite Variable    ${new_cluster_list}
 
 Take Down ODL3
-    [Documentation]   Kill the karaf in Third Controller
+    [Documentation]    Kill the karaf in Third Controller
     ClusterKeywords.Kill Multiple Controllers    3
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Remove Values From List    ${new_cluster_list}    3
@@ -87,8 +87,8 @@ Create Routers
 
 Add Interfaces To Router
     [Documentation]    Add Interfaces
-    : FOR     ${interface}    IN     @{SUBNETS_NAME}
-    \    Add Router Interface     router_3     ${interface}
+    : FOR    ${interface}    IN    @{SUBNETS_NAME}
+    \    Add Router Interface    router_3    ${interface}
 
 Verify Created Routers
     [Documentation]    Check created routers using northbound rest calls
@@ -97,7 +97,7 @@ Verify Created Routers
     Should Contain    ${data}    router_3
 
 Bring Up ODL3
-    [Documentation]  Bring up ODL3 again
+    [Documentation]    Bring up ODL3 again
     ClusterKeywords.Start Multiple Controllers    300s    3
     ${new_cluster_list}    ClusterKeywords.Create Controller Index List
     Set Suite Variable    ${new_cluster_list}
@@ -127,70 +127,70 @@ Ping Vm Instance3 In l3_net_1 From l3_net_2
     Ping Vm From DHCP Namespace    l3_net_2    @{NET_1_VM_IPS}[2]
 
 Take Down ODL1 and ODL2
-    [Documentation]   Kill the karaf in First and Second Controller
+    [Documentation]    Kill the karaf in First and Second Controller
     : FOR    ${index}    IN    @{odl_1_and_2_down}
     \    ClusterKeywords.Kill Multiple Controllers    ${index}
 
 Connectivity Tests From Vm Instance1 In l3_net_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]    @{NET_2_VM_IPS}[1]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[0]     ${dst_ip_list}     l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l3_net_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[1]     ${dst_ip_list}     l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l3_net_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]
     Log    ${dst_ip_list}
     ${other_dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[2]     ${dst_ip_list}     l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    l3_net_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Bring Up ODL1 and ODL2
-    [Documentation]  Bring up ODL1 and ODL2 again
+    [Documentation]    Bring up ODL1 and ODL2 again
     : FOR    ${index}    IN    @{odl_1_and_2_down}
     \    ClusterKeywords.Start Multiple Controllers    300s    ${index}
 
 Take Down ODL2 and ODL3
-    [Documentation]   Kill the karaf in First and Second Controller
+    [Documentation]    Kill the karaf in First and Second Controller
     : FOR    ${index}    IN    @{odl_2_and_3_down}
     \    ClusterKeywords.Kill Multiple Controllers    ${index}
 
 Connectivity Tests From Vm Instance1 In l3_net_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]      @{NET_2_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance     l3_net_2    @{NET_2_VM_IPS}[0]     ${dst_ip_list}     l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    l3_net_2    @{NET_2_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l3_net_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]      @{NET_2_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance     l3_net_2    @{NET_2_VM_IPS}[1]     ${dst_ip_list}     l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    l3_net_2    @{NET_2_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l3_net_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]      @{NET_2_VM_IPS}[1]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[1]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance     l3_net_2    @{NET_2_VM_IPS}[2]     ${dst_ip_list}     l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    l3_net_2    @{NET_2_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Bring Up ODL2 and ODL3
-    [Documentation]  Bring up ODL2 and ODL3 again.
+    [Documentation]    Bring up ODL2 and ODL3 again.
     : FOR    ${index}    IN    @{odl_2_and_3_down}
     \    ClusterKeywords.Start Multiple Controllers    300s    ${index}
 
@@ -206,8 +206,8 @@ Delete Vm Instances In l3_net_2
 
 Delete Router Interfaces
     [Documentation]    Remove Interface to the subnets.
-    : FOR     ${interface}    IN     @{SUBNETS_NAME}
-    \     Remove Interface     router_3     ${interface}
+    : FOR    ${interface}    IN    @{SUBNETS_NAME}
+    \    Remove Interface    router_3    ${interface}
 
 Delete Routers
     [Documentation]    Delete Router and Interface to the subnets.
index f96e85cce0b7e451235fcf28753f0c05d71dd30c..c98db6fd5a924fdf33a180d7461e142d937d6587 100644 (file)
@@ -1,19 +1,19 @@
 *** Settings ***
-Documentation    Test suite to verify packet flows between vm instances.
-Suite Setup    Devstack Suite Setup Tests
-Suite Teardown      Close All Connections
-Library    SSHLibrary
-Library    OperatingSystem
-Library    RequestsLibrary
-Resource    ../../../libraries/Utils.robot
-Resource    ../../../libraries/OpenStackOperations.robot
-Resource    ../../../libraries/DevstackUtils.robot
+Documentation     Test suite to verify packet flows between vm instances.
+Suite Setup       Devstack Suite Setup Tests
+Suite Teardown    Close All Connections
+Library           SSHLibrary
+Library           OperatingSystem
+Library           RequestsLibrary
+Resource          ../../../libraries/Utils.robot
+Resource          ../../../libraries/OpenStackOperations.robot
+Resource          ../../../libraries/DevstackUtils.robot
 
 *** Variables ***
 @{NETWORKS_NAME}    l2_network_1    l2_network_2
 @{SUBNETS_NAME}    l2_subnet_1    l2_subnet_2
-@{NET_1_VM_INSTANCES}    MyFirstInstance_1    MySecondInstance_1      MyThirdInstance_1
-@{NET_2_VM_INSTANCES}    MyFirstInstance_2    MySecondInstance_2      MyThirdInstance_2
+@{NET_1_VM_INSTANCES}    MyFirstInstance_1    MySecondInstance_1    MyThirdInstance_1
+@{NET_2_VM_INSTANCES}    MyFirstInstance_2    MySecondInstance_2    MyThirdInstance_2
 @{NET_1_VM_IPS}    30.0.0.3    30.0.0.4    30.0.0.5
 @{NET_2_VM_IPS}    40.0.0.3    40.0.0.4    40.0.0.5
 @{VM_IPS_NOT_DELETED}    30.0.0.4    30.0.0.5
@@ -47,63 +47,63 @@ Create Vm Instances For l2_network_2
 
 Ping Vm Instance1 In l2_network_1
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace    l2_network_1      @{NET_1_VM_IPS}[0]
+    Ping Vm From DHCP Namespace    l2_network_1    @{NET_1_VM_IPS}[0]
 
 Ping Vm Instance2 In l2_network_1
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace    l2_network_1     @{NET_1_VM_IPS}[1]
+    Ping Vm From DHCP Namespace    l2_network_1    @{NET_1_VM_IPS}[1]
 
 Ping Vm Instance3 In l2_network_1
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace    l2_network_1     @{NET_1_VM_IPS}[2]
+    Ping Vm From DHCP Namespace    l2_network_1    @{NET_1_VM_IPS}[2]
 
 Ping Vm Instance1 In l2_network_2
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace    l2_network_2     @{NET_2_VM_IPS}[0]
+    Ping Vm From DHCP Namespace    l2_network_2    @{NET_2_VM_IPS}[0]
 
 Ping Vm Instance2 In l2_network_2
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace     l2_network_2      @{NET_2_VM_IPS}[1]
+    Ping Vm From DHCP Namespace    l2_network_2    @{NET_2_VM_IPS}[1]
 
 Ping Vm Instance3 In l2_network_2
     [Documentation]    Check reachability of vm instances by pinging to them.
-    Ping Vm From DHCP Namespace    l2_network_2     @{NET_2_VM_IPS}[2]
+    Ping Vm From DHCP Namespace    l2_network_2    @{NET_2_VM_IPS}[2]
 
 Connectivity Tests From Vm Instance1 In l2_network_1
     [Documentation]    Logging to the vm instance1
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_network_1     @{NET_1_VM_IPS}[0]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_network_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l2_network_1
     [Documentation]    Logging to the vm instance2
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_network_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_network_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l2_network_1
     [Documentation]    Logging to the vm instance2
-    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]
+    ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_network_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_network_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance1 In l2_network_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]     @{NET_2_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_network_2     @{NET_2_VM_IPS}[0]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_network_2    @{NET_2_VM_IPS}[0]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In l2_network_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]     @{NET_2_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_network_2     @{NET_2_VM_IPS}[1]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_network_2    @{NET_2_VM_IPS}[1]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In l2_network_2
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]     @{NET_2_VM_IPS}[1]
+    ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[1]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      l2_network_2     @{NET_2_VM_IPS}[2]    ${dst_ip_list}
+    Test Operations From Vm Instance    l2_network_2    @{NET_2_VM_IPS}[2]    ${dst_ip_list}
 
 Delete A Vm Instance
     [Documentation]    Delete Vm instances using instance names.
index 77cc74d44e0ef2bd4915c5957ae502610c8c74da..491b18a32a57cfc53f48fcb95a9875e33ec16ea1 100644 (file)
@@ -1,21 +1,21 @@
 *** Settings ***
-Documentation    Test suite to check connectivity in L3 using routers.
-Suite Setup    Devstack Suite Setup Tests
-Suite Teardown      Close All Connections
-Library    SSHLibrary
-Library    OperatingSystem
-Library    RequestsLibrary
-Resource    ../../../libraries/Utils.robot
-Resource    ../../../libraries/OpenStackOperations.robot
-Resource    ../../../libraries/DevstackUtils.robot
+Documentation     Test suite to check connectivity in L3 using routers.
+Suite Setup       Devstack Suite Setup Tests
+Suite Teardown    Close All Connections
+Library           SSHLibrary
+Library           OperatingSystem
+Library           RequestsLibrary
+Resource          ../../../libraries/Utils.robot
+Resource          ../../../libraries/OpenStackOperations.robot
+Resource          ../../../libraries/DevstackUtils.robot
 
 *** Variables ***
 @{NETWORKS_NAME}    network_1    network_2
 @{SUBNETS_NAME}    subnet_1    subnet_2
-@{NET_1_VM_INSTANCES}    l3_instance_net_1_1   l3_instance_net_1_2      l3_instance_net_1_3
-@{NET_2_VM_INSTANCES}    l3_instance_net_2_1   l3_instance_net_2_2      l3_instance_net_2_3
-@{NET_1_VM_IPS}    50.0.0.3    50.0.0.4     50.0.0.5
-@{NET_2_VM_IPS}    60.0.0.3    60.0.0.4     60.0.0.5
+@{NET_1_VM_INSTANCES}    l3_instance_net_1_1    l3_instance_net_1_2    l3_instance_net_1_3
+@{NET_2_VM_INSTANCES}    l3_instance_net_2_1    l3_instance_net_2_2    l3_instance_net_2_3
+@{NET_1_VM_IPS}    50.0.0.3    50.0.0.4    50.0.0.5
+@{NET_2_VM_IPS}    60.0.0.3    60.0.0.4    60.0.0.5
 @{GATEWAY_IPS}    50.0.0.1    60.0.0.1
 @{DHCP_IPS}       50.0.0.2    60.0.0.2
 @{SUBNETS_RANGE}    50.0.0.0/24    60.0.0.0/24
@@ -36,12 +36,12 @@ Create Subnets For network_2
 
 Create Vm Instances For network_1
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
-    Create Vm Instances     network_1     ${NET_1_VM_INSTANCES}
+    Create Vm Instances    network_1    ${NET_1_VM_INSTANCES}
     [Teardown]    Show Debugs    ${NET_1_VM_INSTANCES}
 
 Create Vm Instances For network_2
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
-    Create Vm Instances     network_2     ${NET_2_VM_INSTANCES}
+    Create Vm Instances    network_2    ${NET_2_VM_INSTANCES}
     [Teardown]    Show Debugs    ${NET_2_VM_INSTANCES}
 
 Create Routers
@@ -79,51 +79,51 @@ Ping Vm Instance3 In network_1 From network_2
 
 Connectivity Tests From Vm Instance1 In network_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]     @{NET_2_VM_IPS}[1]    @{NET_2_VM_IPS}[2] 
+    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]    @{NET_2_VM_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance      network_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    network_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In network_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]     @{NET_2_VM_IPS}[1]      @{NET_2_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]    @{NET_2_VM_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance      network_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    network_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In network_1
     [Documentation]    Logging to the vm instance using generated key pair.
-    ${dst_ip_list}=    Create List    @{DHCP_IPS}[0]     @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]     @{NET_2_VM_IPS}[1]      @{NET_2_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]    @{NET_2_VM_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance      network_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    network_1    @{NET_1_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance1 In network_2
     [Documentation]    Logging to the vm instance using generated key pair.
     ${dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[1]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[0]    @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance      network_2     @{NET_2_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    network_2    @{NET_2_VM_IPS}[0]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In network_2
     [Documentation]    Logging to the vm instance using generated key pair.
     ${dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]    @{NET_2_VM_IPS}[2]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[0]    @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance      network_2     @{NET_2_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    network_2    @{NET_2_VM_IPS}[1]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Connectivity Tests From Vm Instance3 In network_2
     [Documentation]    Logging to the vm instance using generated key pair.
     ${dst_ip_list}=    Create List    @{DHCP_IPS}[1]    @{NET_2_VM_IPS}[0]    @{NET_2_VM_IPS}[1]
     Log    ${dst_ip_list}
-    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[0]    @{NET_1_VM_IPS}[1]     @{NET_1_VM_IPS}[2]
+    ${other_dst_ip_list}=    Create List    @{DHCP_IPS}[0]    @{NET_1_VM_IPS}[0]    @{NET_1_VM_IPS}[1]    @{NET_1_VM_IPS}[2]
     Log    ${other_dst_ip_list}
-    Test Operations From Vm Instance      network_2     @{NET_2_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3     list_of_external_dst_ips=${other_dst_ip_list}
+    Test Operations From Vm Instance    network_2    @{NET_2_VM_IPS}[2]    ${dst_ip_list}    l2_or_l3=l3    list_of_external_dst_ips=${other_dst_ip_list}
 
 Delete Vm Instances In network_1
     [Documentation]    Delete Vm instances using instance names in network_1.
index a4229f78db8cb55df137ed6f25b3e18f968107ac..2bab7d7a9cd5b68f9cc34b7cdad690e007e9cf7d 100644 (file)
@@ -79,12 +79,12 @@ List Nova Flavor
 Create Vm Instances For net1_network
     [Documentation]    Create Vm instances using flavor and image names.
     Create Vm Instances    net1_network    ${NET_1_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_1_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_1_VM_INSTANCES}
 
 Create Vm Instances For net2_network
     [Documentation]    Create Vm instances using flavor and image names.
     Create Vm Instances    net2_network    ${NET_2_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_2_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_2_VM_INSTANCES}
 
 Verify Created Vm Instance In Dump Flow
     [Documentation]    Verify the existence of the created vm instance ips in the dump flow.
@@ -126,8 +126,8 @@ Verify Deleted Vm Instance Removed In Dump Flow
 
 Delete Router Interfaces
     [Documentation]    Remove Interface to the subnets.
-    : FOR     ${interface}    IN     @{SUBNETS_NAME}
-    \     Remove Interface     router_1     ${interface}
+    : FOR    ${interface}    IN    @{SUBNETS_NAME}
+    \    Remove Interface    router_1    ${interface}
 
 Delete Routers
     [Documentation]    Delete Router and Interface to the subnets.
index 05ab6247e711faf9714faf0ab861ef226f05e4ef..b9bf6fb78f6896cc93a92b059afb2c125719b91a 100644 (file)
@@ -37,12 +37,12 @@ Create Subnets For network_2
 Create Vm Instances For network_1
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
     Create Vm Instances    network_1    ${NET_1_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_1_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_1_VM_INSTANCES}
 
 Create Vm Instances For network_2
     [Documentation]    Create Four Vm instances using flavor and image names for a network.
     Create Vm Instances    network_2    ${NET_2_VM_INSTANCES}
-    [Teardown]    Show Debugs      ${NET_2_VM_INSTANCES}
+    [Teardown]    Show Debugs    ${NET_2_VM_INSTANCES}
 
 List Networks With Namespaces
     ${output}=    Write Commands Until Prompt    sudo ip netns list
@@ -68,25 +68,25 @@ Connectivity Tests From Vm Instance1 In network_1
     [Documentation]    Logging to the vm instance1
     ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[1]    @{DHCP_IPS}[0]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      network_1     @{NET_1_VM_IPS}[0]    ${dst_ip_list}
+    Test Operations From Vm Instance    network_1    @{NET_1_VM_IPS}[0]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In network_1
     [Documentation]    Logging to the vm instance2
     ${dst_ip_list}=    Create List    @{NET_1_VM_IPS}[0]    @{DHCP_IPS}[0]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      network_1     @{NET_1_VM_IPS}[1]    ${dst_ip_list}
+    Test Operations From Vm Instance    network_1    @{NET_1_VM_IPS}[1]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance1 In network_2
     [Documentation]    Logging to the vm instance1
     ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[1]    @{DHCP_IPS}[1]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      network_2     @{NET_2_VM_IPS}[0]    ${dst_ip_list}
+    Test Operations From Vm Instance    network_2    @{NET_2_VM_IPS}[0]    ${dst_ip_list}
 
 Connectivity Tests From Vm Instance2 In network_2
     [Documentation]    Logging to the vm instance2
     ${dst_ip_list}=    Create List    @{NET_2_VM_IPS}[0]    @{DHCP_IPS}[1]
     Log    ${dst_ip_list}
-    Test Operations From Vm Instance      network_2     @{NET_2_VM_IPS}[1]    ${dst_ip_list}
+    Test Operations From Vm Instance    network_2    @{NET_2_VM_IPS}[1]    ${dst_ip_list}
 
 Delete Vm Instance
     [Documentation]    Delete Vm instances using instance names.
index 2cc5dab16dad8a853c80df80e9a4de0e65c676d2..0a3fa22f32ea622fe2e02439a372dc746a2e35b3 100644 (file)
@@ -129,4 +129,3 @@ Init Suite
     Set Suite Variable    ${SF_DPI102100_URI}    /restconf/config/service-function:service-functions/service-function/dpi-102-100/
     Set Suite Variable    ${SF_DPI102100_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sf_dpi_102_100.json
     Set Suite Variable    ${SF_DPL101_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sf_dpl_101.json
-
index 49365e6f695611c77bfe3c8e4ca0cd92998d7fb9..5cc0ee145bd0311fc3ad627a733c86be4fc61a76 100644 (file)
@@ -279,4 +279,3 @@ Init Suite
     Set Suite Variable    ${SFF_SFD_LOCATOR_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sff_sfd_locator.json
     Set Suite Variable    ${SFF_CSD_SFF100_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sff_csd_sff100.json
     Set Suite Variable    ${SFF_CSD_LOCATOR_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sff_csd_locator.json
-
index 5fa97a328a172e785504cd0dcab2c696bf765e3d..43fe85ad3f803ccf74b9ee74ce160cade716e9bc 100644 (file)
@@ -9,7 +9,6 @@ Library           RequestsLibrary
 Variables         ../../../variables/Variables.py
 Resource          ../../../libraries/Utils.robot
 
-
 *** Test Cases ***
 Put Service Nodes
     [Documentation]    Add Service Nodes from JSON file
@@ -92,4 +91,3 @@ Init Suite
     Set Suite Variable    ${SERVICE_NODES_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/service-nodes.json
     Set Suite Variable    ${SN_NODE100_URI}    /restconf/config/service-node:service-nodes/service-node/node-100
     Set Suite Variable    ${SN_NODE100_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sn_node_100.json
-
index 6da3c4f088327351a45796ae70569f36fb0889c5..d6a2e11862b1640de849941fb9040d9f096d27dc 100644 (file)
@@ -137,5 +137,3 @@ Init Suite
     Set Suite Variable    ${SERVICE_CHAIN100_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sfc_chain_100.json
     Set Suite Variable    ${SERVICE_CHAIN100_SFIDS_URI}    /restconf/config/service-function-chain:service-function-chains/service-function-chain/SFC100/sfc-service-function/ids-abstract100
     Set Suite Variable    ${SERVICE_CHAIN100_SFIDS_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sfc_chain_100_sfids.json
-
-
index 9b7f64759c3f67f06aeaafb033a3dabad5145401..bae2eb980ec8bc51ac367a34caa65502cbc290eb 100644 (file)
@@ -79,8 +79,6 @@ Clean Datastore After Tests
     [Documentation]    Delete All Service Function Schedule Algorithm Types From Datastore After Tests
     Remove All Elements At URI    ${SERVICE_SCHED_TYPES_URI}
 
-
-
 *** keywords ***
 Init Suite
     [Documentation]    Initialize session and ODL version specific variables
@@ -92,5 +90,3 @@ Init Suite
     Set Suite Variable    ${SERVICE_SCHED_TYPES_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/service-schedule-types.json
     Set Suite Variable    ${SERVICE_WSP_SCHED_TYPE_URI}    /restconf/config/service-function-scheduler-type:service-function-scheduler-types/service-function-scheduler-type/service-function-scheduler-type:weighted-shortest-path
     Set Suite Variable    ${SERVICE_WSP_SCHED_TYPE_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/service-wsp-schedule-type.json
-
-
index 46f67eb93f0b6b1665f02591bef3e4734b8919f8..2fd153b7b0656a602a77af8b1def20bbed95091d 100644 (file)
@@ -97,5 +97,3 @@ Init Suite
     Set Suite Variable    ${SERVICE_FUNCTION_PATHS_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/service-function-paths.json
     Set Suite Variable    ${SERVICE_FUNCTION_PATH400_URI}    /restconf/config/service-function-path:service-function-paths/service-function-path/SFC1-400
     Set Suite Variable    ${SERVICE_FUNCTION_PATH400_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/sfp_sfc1_path400.json
-
-
index e8a498aa947b51fb39347b76d2e34058fbbf197f..8423547e5b1279804c796b0260549499b87b86cd 100644 (file)
@@ -10,8 +10,6 @@ Library           HttpLibrary.HTTP
 Variables         ../../../variables/Variables.py
 Resource          ../../../libraries/Utils.robot
 
-
-
 *** Test Cases ***
 Basic Environment Setup Tests
     [Documentation]    Prepare Basic Test Environment
@@ -20,6 +18,7 @@ Basic Environment Setup Tests
     Add Elements To URI From File    ${SERVICE_FUNCTIONS_URI}    ${SERVICE_FUNCTIONS_FILE}
     Add Elements To URI From File    ${SERVICE_CHAINS_URI}    ${SERVICE_CHAINS_FILE}
     Add Elements To URI From File    ${SERVICE_FUNCTION_PATHS_URI}    ${SERVICE_FUNCTION_PATHS_FILE}
+
 Create and Get Rendered Service Path
     [Documentation]    Create and Get Rendered Service Path Through RESTConf APIs
     Post Elements To URI As JSON    ${OPERATIONS_CREATE_RSP_URI}    ${CREATE_RSP1_INPUT}
@@ -111,6 +110,7 @@ Generate RSPs with Random Schedule Algorithm type
     Check For Elements At URI    ${OPERATIONAL_RSPS_URI}rendered-service-path/SFC1-100-Path-2/rendered-service-path-hop/2/    ${elements}
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP1_INPUT}
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP2_INPUT}
+
 Generate RSPs with Round Robin Schedule Algorithm type
     [Documentation]    Generate RSPs with Round Robin Schedule Algorithm type
     Remove All Elements At URI    ${SERVICE_SCHED_TYPES_URI}
@@ -163,6 +163,7 @@ Generate RSPs with Round Robin Schedule Algorithm type
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP4_INPUT}
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP5_INPUT}
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP6_INPUT}
+
 Generate RSPs with Shortest Path Schedule Algorithm type
     [Documentation]    Generate RSPs with Shortest Path Schedule Algorithm type Through RESTConf APIs
     Remove All Elements At URI    ${SERVICE_SCHED_TYPES_URI}
@@ -199,6 +200,7 @@ Generate RSPs with Shortest Path Schedule Algorithm type
     Should Be Equal    ${fwd_hop2}    ${fwd_hop3}
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP1_INPUT}
     Post Elements To URI As JSON    ${OPERATIONS_DELETE_RSP_URI}    ${DELETE_RSP2_INPUT}
+
 Clean Datastore After Tests
     [Documentation]    Clean All Items In Datastore After Tests
     Remove All Elements At URI    ${SERVICE_FUNCTIONS_URI}
@@ -226,7 +228,6 @@ Init Suite
     log    ${ODL_STREAM}
     Run Keyword If    '${ODL_STREAM}' == 'stable-lithium'    Set Suite Variable    ${VERSION_DIR}    lithium
     ...    ELSE    Set Suite Variable    ${VERSION_DIR}    master
-
     Set Suite Variable    ${SERVICE_FUNCTIONS_URI}    /restconf/config/service-function:service-functions/
     Set Suite Variable    ${SERVICE_FUNCTIONS_FILE}    ${CURDIR}/../../../variables/sfc/${VERSION_DIR}/service-functions.json
     Set Suite Variable    ${SERVICE_FORWARDERS_URI}    /restconf/config/service-function-forwarder:service-function-forwarders/
@@ -264,4 +265,3 @@ Init Suite
     Set Suite Variable    ${DELETE_RSP4_INPUT}    {"input":{"name":"SFC1-100-Path-4"}}
     Set Suite Variable    ${DELETE_RSP5_INPUT}    {"input":{"name":"SFC1-100-Path-5"}}
     Set Suite Variable    ${DELETE_RSP6_INPUT}    {"input":{"name":"SFC1-100-Path-6"}}
-
index 19e1fb9a64f321279904f1c52aab27f702b92f21..a4c97dff743555a62ac7e829e0ba4078afd2ed06 100644 (file)
@@ -7,11 +7,11 @@ Resource          ../../../libraries/VtnMaKeywords.robot
 *** Variables ***
 ${flowconditiondata}    "vtn-flow-match":[{"vtn-inet-match":{"source-network":"10.0.0.3/32","destination-network":"10.0.0.1/32"},"index":"1"}]
 ${flowfilterInetdata}    "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order": "1","vtn-set-inet-src-action":{"ipv4-address":"192.0.0.1/32"}},{"order": "2","vtn-set-inet-dst-action":{"ipv4-address":"192.0.0.2/32"}}],"index": "1"}]
-${flowfilterInetdropdata}   "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-drop-filter":{},"vtn-flow-action":[{"order": "1","vtn-set-inet-src-action":{"ipv4-address":"10.0.0.2/32"}},{"order": "2","vtn-set-inet-dst-action":{"ipv4-address":"10.0.0.4/32"}}],"index": "1"}]
-${flowfilterIcmpCodedata}   "output": "true", "vtn-flow-filter": [{"condition": "cond_1","index": "1", "vtn-pass-filter": {}, "vtn-flow-action": [{ "order": "1", "vtn-set-icmp-code-action":{"code": "1"}},{"order": "2","vtn-set-icmp-type-action": {"type": "3"}}]}]
-${flowfilterTpsrcTpdstdata}   "output": "true", "vtn-flow-filter": [{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-port-src-action": {"port": "5"}},{"order": "2","vtn-set-port-dst-action": {"port": "10"}}],"index": "1"}]
-${flowfilterDscpdata}   "output": "true", "vtn-flow-filter":[{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-inet-dscp-action": {"dscp":"32"}}],"index":"1"}]
-${flowfiltervlanpcp}   "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order":"3","vtn-set-icmp-code-action":{"code":"1"}},{"order":"4","vtn-set-vlan-pcp-action":{"vlan-pcp":"3"}}],"index":"1"}]
+${flowfilterInetdropdata}    "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-drop-filter":{},"vtn-flow-action":[{"order": "1","vtn-set-inet-src-action":{"ipv4-address":"10.0.0.2/32"}},{"order": "2","vtn-set-inet-dst-action":{"ipv4-address":"10.0.0.4/32"}}],"index": "1"}]
+${flowfilterIcmpCodedata}    "output": "true", "vtn-flow-filter": [{"condition": "cond_1","index": "1", "vtn-pass-filter": {}, "vtn-flow-action": [{ "order": "1", "vtn-set-icmp-code-action":{"code": "1"}},{"order": "2","vtn-set-icmp-type-action": {"type": "3"}}]}]
+${flowfilterTpsrcTpdstdata}    "output": "true", "vtn-flow-filter": [{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-port-src-action": {"port": "5"}},{"order": "2","vtn-set-port-dst-action": {"port": "10"}}],"index": "1"}]
+${flowfilterDscpdata}    "output": "true", "vtn-flow-filter":[{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-inet-dscp-action": {"dscp":"32"}}],"index":"1"}]
+${flowfiltervlanpcp}    "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order":"3","vtn-set-icmp-code-action":{"code":"1"}},{"order":"4","vtn-set-vlan-pcp-action":{"vlan-pcp":"3"}}],"index":"1"}]
 
 *** Test Cases ***
 Check if switch1 detected
index 70ccfd6b31a8ca8538644fffffd1827ab1b2e31d..47bab78df7548098192b13da9a281e311058aeab 100644 (file)
@@ -7,11 +7,11 @@ Resource          ../../../libraries/VtnMaKeywords.robot
 *** Variables ***
 ${flowconditiondata}    "vtn-flow-match":[{"vtn-inet-match":{"source-network":"10.0.0.3/32","destination-network":"10.0.0.1/32"},"index":"1"}]
 ${flowfilterInetdata}    "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order": "1","vtn-set-inet-src-action":{"ipv4-address":"192.0.0.1/32"}},{"order": "2","vtn-set-inet-dst-action":{"ipv4-address":"192.0.0.2/32"}}],"index": "1"}]
-${flowfilterInetdropdata}   "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-drop-filter":{},"vtn-flow-action":[{"order": "1","vtn-set-inet-src-action":{"ipv4-address":"10.0.0.2/32"}},{"order": "2","vtn-set-inet-dst-action":{"ipv4-address":"10.0.0.4/32"}}],"index": "1"}]
-${flowfilterIcmpCodedata}   "output": "true", "vtn-flow-filter": [{"condition": "cond_1","index": "1", "vtn-pass-filter": {}, "vtn-flow-action": [{ "order": "1", "vtn-set-icmp-code-action":{"code": "1"}},{"order": "2","vtn-set-icmp-type-action": {"type": "3"}}]}]
-${flowfilterTpsrcTpdstdata}   "output": "true", "vtn-flow-filter": [{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-port-src-action": {"port": "5"}},{"order": "2","vtn-set-port-dst-action": {"port": "10"}}],"index": "1"}]
-${flowfilterDscpdata}   "output": "true", "vtn-flow-filter":[{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-inet-dscp-action": {"dscp":"32"}}],"index":"1"}]
-${flowfiltervlanpcp}   "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order":"3","vtn-set-icmp-code-action":{"code":"1"}},{"order":"4","vtn-set-vlan-pcp-action":{"vlan-pcp":"3"}}],"index":"1"}]
+${flowfilterInetdropdata}    "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-drop-filter":{},"vtn-flow-action":[{"order": "1","vtn-set-inet-src-action":{"ipv4-address":"10.0.0.2/32"}},{"order": "2","vtn-set-inet-dst-action":{"ipv4-address":"10.0.0.4/32"}}],"index": "1"}]
+${flowfilterIcmpCodedata}    "output": "true", "vtn-flow-filter": [{"condition": "cond_1","index": "1", "vtn-pass-filter": {}, "vtn-flow-action": [{ "order": "1", "vtn-set-icmp-code-action":{"code": "1"}},{"order": "2","vtn-set-icmp-type-action": {"type": "3"}}]}]
+${flowfilterTpsrcTpdstdata}    "output": "true", "vtn-flow-filter": [{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-port-src-action": {"port": "5"}},{"order": "2","vtn-set-port-dst-action": {"port": "10"}}],"index": "1"}]
+${flowfilterDscpdata}    "output": "true", "vtn-flow-filter":[{"condition": "cond_1","vtn-pass-filter": {},"vtn-flow-action": [{"order": "1","vtn-set-inet-dscp-action": {"dscp":"32"}}],"index":"1"}]
+${flowfiltervlanpcp}    "output": "true", "vtn-flow-filter":[{"condition":"cond_1","vtn-pass-filter":{},"vtn-flow-action":[{"order":"3","vtn-set-icmp-code-action":{"code":"1"}},{"order":"4","vtn-set-vlan-pcp-action":{"vlan-pcp":"3"}}],"index":"1"}]
 
 *** Test Cases ***
 Check if switch1 detected