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 ip -o link ]>
+ Write Commands Until Expected Prompt ip -o addr ]>
+ Write Commands Until Expected Prompt ip route ]>
+ ${nslist}= Write Commands Until Expected Prompt ip netns list | awk '{print $1}' ]>
+ @{lines} Split To Lines ${nslist}
+ : FOR ${line} IN @{lines}
+ \ Write Commands Until Expected Prompt sudo ip netns exec ${line} ip -o link ]>
+ \ Write Commands Until Expected Prompt sudo ip netns exec ${line} ip -o addr ]>
+ \ Write Commands Until Expected Prompt sudo ip netns exec ${line} ip route ]>
Write Commands Until Expected Prompt sudo ovs-vsctl show ]>
+ Write Commands Until Expected Prompt sudo ovs-ofctl show br-int -OOpenFlow13 ]>
Write Commands Until Expected Prompt sudo ovs-ofctl dump-flows br-int -OOpenFlow13 ]>
+ Write Commands Until Expected Prompt sudo ovs-ofctl dump-groups br-int -OOpenFlow13 ]>
+ Write Commands Until Expected Prompt sudo ovs-ofctl dump-group-stats br-int -OOpenFlow13 ]>
Get ControlNode Connection
${control_conn_id}= SSHLibrary.Open Connection ${OS_CONTROL_NODE_IP} prompt=${DEFAULT_LINUX_PROMPT_STRICT}
[Documentation] Create Four Vm instances using flavor and image names for a network.
Create Vm Instances l2_network_2 ${NET_2_VM_INSTANCES}
[Teardown] Show Debugs ${NET_2_VM_INSTANCES}
+ Get OvsDebugInfo
Ping Vm Instance1 In l2_network_1
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_1 @{NET_1_VM_IPS}[0]
+ Get OvsDebugInfo
Ping Vm Instance2 In l2_network_1
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_1 @{NET_1_VM_IPS}[1]
+ Get OvsDebugInfo
Ping Vm Instance3 In l2_network_1
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_1 @{NET_1_VM_IPS}[2]
+ Get OvsDebugInfo
Ping Vm Instance1 In l2_network_2
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_2 @{NET_2_VM_IPS}[0]
+ Get OvsDebugInfo
Ping Vm Instance2 In l2_network_2
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_2 @{NET_2_VM_IPS}[1]
+ Get OvsDebugInfo
Ping Vm Instance3 In l2_network_2
[Documentation] Check reachability of vm instances by pinging to them.
+ Get OvsDebugInfo
Ping Vm From DHCP Namespace l2_network_2 @{NET_2_VM_IPS}[2]
+ Get OvsDebugInfo
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]
Log ${dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance l2_network_1 @{NET_1_VM_IPS}[0] ${dst_ip_list}
+ Get OvsDebugInfo
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]
Log ${dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance l2_network_1 @{NET_1_VM_IPS}[1] ${dst_ip_list}
+ Get OvsDebugInfo
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]
Log ${dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance l2_network_1 @{NET_1_VM_IPS}[2] ${dst_ip_list}
+ Get OvsDebugInfo
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]
Log ${dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance l2_network_2 @{NET_2_VM_IPS}[0] ${dst_ip_list}
+ Get OvsDebugInfo
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]
Log ${dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance l2_network_2 @{NET_2_VM_IPS}[1] ${dst_ip_list}
+ Get OvsDebugInfo
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]
Log ${dst_ip_list}
+ Get OvsDebugInfo
Test Operations From Vm Instance l2_network_2 @{NET_2_VM_IPS}[2] ${dst_ip_list}
+ Get OvsDebugInfo
Delete A Vm Instance
[Documentation] Delete Vm instances using instance names.
No Ping For Deleted Vm
[Documentation] Check non reachability of deleted vm instances by pinging to them.
+ Get OvsDebugInfo
${output}= Ping From DHCP Should Not Succeed l2_network_1 @{NET_1_VM_IPS}[0]
+ Get OvsDebugInfo
Delete Vm Instances In l2_network_1
[Documentation] Delete Vm instances using instance names in l2_network_1.
[Documentation] Delete Networks with neutron request.
: FOR ${NetworkElement} IN @{NETWORKS_NAME}
\ Delete Network ${NetworkElement}
+ Get OvsDebugInfo