Verify Gateway Ips
[Documentation] Verifies the Gateway Ips with dump flow.
- ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
+ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
Log ${output}
: FOR ${GatewayIpElement} IN @{GATEWAY_IPS}
\ Should Contain ${output} ${GatewayIpElement}
Verify Dhcp Ips
[Documentation] Verifies the Dhcp Ips with dump flow.
- ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
+ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
Log ${output}
: FOR ${DhcpIpElement} IN @{DHCP_IPS}
\ Should Contain ${output} ${DhcpIpElement}
Verify No Dhcp Ips
[Documentation] Verifies the Dhcp Ips with dump flow.
- ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
+ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
Log ${output}
: FOR ${DhcpIpElement} IN @{DHCP_IPS}
\ Should Not Contain ${output} ${DhcpIpElement}
Verify No Gateway Ips
[Documentation] Verifies the Gateway Ips removed with dump flow.
- ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
+ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
Log ${output}
: FOR ${GatewayIpElement} IN @{GATEWAY_IPS}
\ Should Not Contain ${output} ${GatewayIpElement}
[Arguments] ${net_id} ${network_name}
[Documentation] Create Vm Instance with the net id of the Netowrk.
${VmElement}= Set Variable If "${network_name}"=="net1_network" MyFirstInstance MySecondInstance
- ${output}= Write Commands Until Prompt nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --nic net-id=${net_id} ${VmElement}
+ ${output}= Write Commands Until Prompt nova boot --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --nic net-id=${net_id} ${VmElement}
Log ${output}
Delete Vm Instance
[Arguments] ${vm_name}
[Documentation] Delete Vm instances using instance names.
- ${output}= Write Commands Until Prompt nova delete ${vm_name}
+ ${output}= Write Commands Until Prompt nova delete ${vm_name}
Log ${output}
Get Net Id
[Arguments] ${network_name}
[Documentation] Retrieve the net id for the given network name to create specific vm instance
- ${output}= Write Commands Until Prompt neutron net-list | grep "${network_name}" | get_field 1
+ ${output}= Write Commands Until Prompt neutron net-list | grep "${network_name}" | get_field 1
Log ${output}
- ${splitted_output}= Split String ${output} \
+ ${splitted_output}= Split String ${output} ${EMPTY}
${net_id}= Get from List ${splitted_output} 0
Log ${net_id}
[Return] ${net_id}
Create Router
[Documentation] Create Router and Add Interface to the subnets.
- ${output}= Write Commands Until Prompt neutron -v router-create router_1
+ ${output}= Write Commands Until Prompt neutron -v router-create router_1
Log ${output}
: FOR ${SubnetElement} IN @{SUBNETS_NAME}
- \ ${output}= Write Commands Until Prompt neutron -v router-interface-add router_1 ${SubnetElement}
+ \ ${output}= Write Commands Until Prompt neutron -v router-interface-add router_1 ${SubnetElement}
Log ${output}
Remove Interface
[Documentation] Remove Interface to the subnets.
: FOR ${SubnetElement} IN @{SUBNETS_NAME}
- \ ${output}= Write Commands Until Prompt neutron -v router-interface-delete router_1 ${SubnetElement}
+ \ ${output}= Write Commands Until Prompt neutron -v router-interface-delete router_1 ${SubnetElement}
\ Log ${output}
Delete Router
[Documentation] Delete Router and Interface to the subnets.
- ${output}= Write Commands Until Prompt neutron -v router-delete router_1
+ ${output}= Write Commands Until Prompt neutron -v router-delete router_1
Log ${output}
-
... Assemble the RestPerfClient invocation commad, setup the specified
... timeout for the SSH connection, invoke the assembled command and
... then check that RestPerfClient finished its run correctly.
- [Teardown] BuiltIn.Run_Keyword_If ${restperfclient_running} BuiltIn.Run_Keyword_And_Ignore_Error RestPerfClient__Kill
${restperfclient_running}= Set_Variable False
${logname}= Utils.Get_Log_File_Name restperfclient ${testcase}
BuiltIn.Set_Suite_Variable ${RestPerfClient__restperfclientlog} ${logname}
SetupUtils.Set_Unknown_Bug_Id
${result}= Grep_Restperfclient_Log FINISHED. Execution time:
BuiltIn.Should_Not_Be_Equal '${result}' ''
+ [Teardown] BuiltIn.Run_Keyword_If ${restperfclient_running} BuiltIn.Run_Keyword_And_Ignore_Error RestPerfClient__Kill
Grep_Restperfclient_Log
[Arguments] ${pattern}
${VTN_INVENTORY} restconf/operational/vtn-inventory:vtn-nodes
${DUMPFLOWS_OF10} dpctl dump-flows -OOpenFlow10
${DUMPFLOWS_OF13} dpctl dump-flows -OOpenFlow13
-${FF_DUMPFLOWS_OF10} sh ovs-ofctl dump-flows -OOpenFlow10 s3
-${FF_DUMPFLOWS_OF13} sh ovs-ofctl dump-flows -OOpenFlow13 s3
-${DROP_DUMPFLOWS_OF10} sh ovs-ofctl dump-flows -OOpenFlow10 s2
-${DROP_DUMPFLOWS_OF13} sh ovs-ofctl dump-flows -OOpenFlow13 s2
+${FF_DUMPFLOWS_OF10} sh ovs-ofctl dump-flows -OOpenFlow10 s3
+${FF_DUMPFLOWS_OF13} sh ovs-ofctl dump-flows -OOpenFlow13 s3
+${DROP_DUMPFLOWS_OF10} sh ovs-ofctl dump-flows -OOpenFlow10 s2
+${DROP_DUMPFLOWS_OF13} sh ovs-ofctl dump-flows -OOpenFlow13 s2
${index} 7
@{inet_actions} mod_nw_src:192.0.0.1 mod_nw_dst:192.0.0.2
@{BRIDGE1_DATAFLOW} "reason":"PORTMAPPED" "tenant-name":"Tenant1" "bridge-name":"vBridge1" "interface-name":"if2"
${BGP_PEER_LOG_LEVEL} debug
${CONTROLLER_LOG_LEVEL} INFO
${CONTROLLER_BGP_LOG_LEVEL} DEFAULT
-${JSONKEYSTR} "linkstate-route"
+${JSONKEYSTR} "linkstate-route"
*** Test Cases ***
TC1_Configure_iBGP_Peer
@{NETWORKS_NAME} net1_network net2_network
@{SUBNETS_NAME} subnet1 subnet2
@{VM_INSTANCES_NAME} MyFirstInstance MySecondInstance
-@{VM_IPS} 10.0.0.3 20.0.0.3
+@{VM_IPS} 10.0.0.3 20.0.0.3
@{GATEWAY_IPS} 10.0.0.1 20.0.0.1
-@{DHCP_IPS} 10.0.0.2 20.0.0.2
+@{DHCP_IPS} 10.0.0.2 20.0.0.2
*** Test Cases ***
Run Devstack Gate Wrapper
\ Create SubNet ${NetworkElement}
List Ports
- ${output}= Write Commands Until Prompt neutron -v port-list
+ ${output}= Write Commands Until Prompt neutron -v port-list
Log ${output}
List Available Networks
- ${output}= Write Commands Until Prompt neutron -v net-list
+ ${output}= Write Commands Until Prompt neutron -v net-list
Log ${output}
List Tenants
- ${output}= Write Commands Until Prompt keystone tenant-list
+ ${output}= Write Commands Until Prompt keystone tenant-list
Log ${output}
List Nova
- ${output}= Write Commands Until Prompt nova list
+ ${output}= Write Commands Until Prompt nova list
Log ${output}
List Nova Images
- ${output}= Write Commands Until Prompt nova image-list
+ ${output}= Write Commands Until Prompt nova image-list
Log ${output}
List Nova Flavor
- ${output}= Write Commands Until Prompt nova flavor-list
+ ${output}= Write Commands Until Prompt nova flavor-list
Log ${output}
Create Vm Instances
Show Details of Created Vm Instance
[Documentation] View Details of the created vm instances using nova show.
: FOR ${VmElement} IN @{VM_INSTANCES_NAME}
- \ ${output}= Write Commands Until Prompt nova show ${VmElement}
+ \ ${output}= Write Commands Until Prompt nova show ${VmElement}
\ Log ${output}
Verify Created Vm Instance In Dump Flow
[Documentation] Verify the existence of the created vm instance ips in the dump flow.
- ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
+ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
Log ${output}
: FOR ${VmIpElement} IN @{VM_IPS}
\ Should Contain ${output} ${VmIpElement}
Verify Deleted Vm Instance Removed In Dump Flow
[Documentation] Verify the non-existence of the vm instance ips in the dump flow.
: FOR ${VmIpElement} IN @{VM_IPS}
- \ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
+ \ ${output}= Write Commands Until Prompt sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
\ Log ${output}
\ Should Not Contain ${output} ${VmIpElement}
Start Mininet Multiple Connections
[Documentation] Start mininet with connection to all cluster instances.
- ${mininet_conn_id} Add Multiple Managers to OVS ${TOOLS_SYSTEM_IP} ${original_cluster_list}
+ ${mininet_conn_id} Add Multiple Managers to OVS ${TOOLS_SYSTEM_IP} ${original_cluster_list}
Set Suite Variable ${mininet_conn_id}
Log ${mininet_conn_id}
Resource ../../../libraries/KarafKeywords.robot
*** Variables ***
-@{FLOW_TABLE_LIST} actions=goto_table:20 actions=CONTROLLER:65535 actions=goto_table:30 actions=goto_table:40 actions=goto_table:50 actions=goto_table:60 actions=goto_table:70 actions=goto_table:80 actions=goto_table:90 actions=goto_table:100 actions=goto_table:110 actions=drop
+@{FLOW_TABLE_LIST} actions=goto_table:20 actions=CONTROLLER:65535 actions=goto_table:30 actions=goto_table:40 actions=goto_table:50 actions=goto_table:60 actions=goto_table:70
+... actions=goto_table:80 actions=goto_table:90 actions=goto_table:100 actions=goto_table:110 actions=drop
*** Test Cases ***
Create Original Cluster List
Start Mininet Multiple Connections
[Documentation] Start mininet with connection to all cluster instances.
- ${mininet_conn_id} Add Multiple Managers to OVS ${TOOLS_SYSTEM_IP} ${original_cluster_list}
+ ${mininet_conn_id} Add Multiple Managers to OVS ${TOOLS_SYSTEM_IP} ${original_cluster_list}
Set Suite Variable ${mininet_conn_id}
Log ${mininet_conn_id}
Log ${output}
Should Contain ${output} Interface br-int
-
Get the bridge flows
[Documentation] This request fetch the OF13 flow tables to verify the flows are correctly added
[Tags] OVSDB netvirt
${output} Run Command On Remote System ${TOOLS_SYSTEM_IP} sudo ovs-ofctl -O Openflow13 dump-flows br-int
Log ${output}
: FOR ${flows} IN @{FLOW_TABLE_LIST}
- \ Should Contain ${output} ${flows}
\ No newline at end of file
+ \ Should Contain ${output} ${flows}