${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}
${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
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}
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}
*** 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
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}
[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}
[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}
[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}
[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}
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
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}
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}
*** 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
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
[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
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
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}
*** 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
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
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
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
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
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}
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}
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.
*** 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
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.
*** 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
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
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.
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.
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.
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
[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.
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
-
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
-
Variables ../../../variables/Variables.py
Resource ../../../libraries/Utils.robot
-
*** Test Cases ***
Put Service Nodes
[Documentation] Add Service Nodes from JSON file
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
-
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
-
-
[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
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
-
-
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
-
-
Variables ../../../variables/Variables.py
Resource ../../../libraries/Utils.robot
-
-
*** Test Cases ***
Basic Environment Setup Tests
[Documentation] Prepare Basic Test Environment
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}
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}
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}
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}
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/
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"}}
-
*** 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
*** 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