TC14 Create, Update And Attach 2nd Neutron Port to Hwvtep Namespace 1
[Documentation] Create and attach 2nd port to HWVTEP in network 1
- [Tags] skip_if_stable/ocata skip_if_stable/pike
- BuiltIn.Pass_Execution_If "skip_if_${OPENSTACK_BRANCH}" in @{TEST_TAGS} Not supported in Ocata/Pike
CompareStream.Run_Keyword_If_At_Most_Nitrogen BuiltIn.Pass_Execution Only run on oxygen and later
OpenStackOperations.Create Neutron Port With Additional Params ${NET_1} ${HWVTEP_PORT_3} ${SECURITY_GROUP_L2GW_NONE}
${port_mac}= Get Port Mac ${HWVTEP_PORT_3} #port_mac[4]
TC15 Update Existing L2Gateway With 2nd Port And Verify
[Documentation] Add the new port ${NS_PORT3} to existing L2GW ${L2GW_NAME1} that has an existing connection. ${NS_PORT1} is already attached, adding ${NS_PORT3}
- [Tags] skip_if_stable/ocata skip_if_stable/pike
- BuiltIn.Pass_Execution_If "skip_if_${OPENSTACK_BRANCH}" in @{TEST_TAGS} Not supported in Ocata/Pike
CompareStream.Run_Keyword_If_At_Most_Nitrogen BuiltIn.Pass_Execution Only run on oxygen and later
${output}= Wait Until Keyword Succeeds 30s 2s L2GatewayOperations.Update And Verify L2Gateway ${HWVTEP_BRIDGE} ${L2GW_NAME1}
... ${NS_PORT1} ${NS_PORT3}
TC16 Verify L2Gateway Connection
[Documentation] Verify the L2GW connection has the 2nd port. Verify db in hardware vtep emulator tables.
- [Tags] skip_if_stable/ocata skip_if_stable/pike
- BuiltIn.Pass_Execution_If "skip_if_${OPENSTACK_BRANCH}" in @{TEST_TAGS} Not supported in Ocata/Pike
CompareStream.Run_Keyword_If_At_Most_Nitrogen BuiltIn.Pass_Execution Only run on oxygen and later
Wait Until Keyword Succeeds 30s 2s L2GatewayOperations.Verify L2Gateway Connection ${L2GW_NAME1} ${NET_1}
Wait Until Keyword Succeeds 30s 2s L2GatewayOperations.Verify Ovs Tunnel ${HWVTEP_IP} ${OVS_IP}
Should Contain ${output} physicalswitch/${HWVTEP_BRIDGE}
Wait Until Keyword Succeeds 30s 1s L2GatewayOperations.Verify Vtep List ${hwvtep_conn_id} ${TUNNEL_TABLE} enable="true"
${phy_port_out}= Get Vtep List ${PHYSICAL_PORT_TABLE}
- Validate Regexp In String ${phy_port_out} ${VLAN_BINDING_REGEX} 1
+ Validate Regexp In String ${phy_port_out} ${VLAN_BINDING_REGEX} 3
${list}= Create List ${OVS_IP} ${HWVTEP_IP}
Wait Until Keyword Succeeds 30s 1s L2GatewayOperations.Verify Vtep List ${hwvtep_conn_id} ${PHYSICAL_LOCATOR_TABLE} @{list}
Wait Until Keyword Succeeds 30s 1s L2GatewayOperations.Verify Vtep List ${hwvtep_conn_id} ${UCAST_MACS_REMOTE_TABLE} ${port_mac_list[0]}
- Wait Until Keyword Succeeds 30s 1s L2GatewayOperations.Verify Vtep List ${hwvtep_conn_id} ${UCAST_MACS_REMOTE_TABLE} ${port_mac_list[4]}
+ Wait Until Keyword Succeeds 30s 1s L2GatewayOperations.Verify Vtep List ${hwvtep_conn_id} ${UCAST_MACS_REMOTE_TABLE} ${port_mac_list[2]}
TC17 Dhcp Ip Allocation For Hwvtep Tap Port
[Documentation] Verify the 2nd HWVTEP port was able to get an IP address
- [Tags] skip_if_stable/ocata skip_if_stable/pike
- BuiltIn.Pass_Execution_If "skip_if_${OPENSTACK_BRANCH}" in @{TEST_TAGS} Not supported in Ocata/Pike
CompareStream.Run_Keyword_If_At_Most_Nitrogen BuiltIn.Pass_Execution Only run on oxygen and later
Wait Until Keyword Succeeds 180s 10s L2GatewayOperations.Namespace Dhclient Verify ${HWVTEP_NS1} ${NS_TAP1} ${port_ip_list[4]}
TC18 Verify Ping From Compute Node Vm To Hwvtep Port 2
[Documentation] Verify IP connectivity between VM in net1 and 2nd HWVTEP port in net 1
- [Tags] skip_if_stable/ocata skip_if_stable/pike
- BuiltIn.Pass_Execution_If "skip_if_${OPENSTACK_BRANCH}" in @{TEST_TAGS} Not supported in Ocata/Pike
CompareStream.Run_Keyword_If_At_Most_Nitrogen BuiltIn.Pass_Execution Only run on oxygen and later
${output}= Wait Until Keyword Succeeds 60s 10s Execute Command on VM Instance ${NET_1} ${port_ip_list[0]}
... ping -c 3 ${port_ip_list[4]}
TC19 Ping Verification From Namespace Tap To Ovs Vm
[Documentation] Verify IP connectivity between 2nd HWVTEP port and VM in compute node
- [Tags] skip_if_stable/ocata skip_if_stable/pike
- BuiltIn.Pass_Execution_If "skip_if_${OPENSTACK_BRANCH}" in @{TEST_TAGS} Not supported in Ocata/Pike
CompareStream.Run_Keyword_If_At_Most_Nitrogen BuiltIn.Pass_Execution Only run on oxygen and later
Wait Until Keyword Succeeds 30s 5s L2GatewayOperations.Verify Ping In Namespace Extra Timeout ${HWVTEP_NS1} ${port_mac_list[4]} ${port_ip_list[0]}
TC99 Cleanup L2Gateway Connection Itm Tunnel Port Subnet And Network
- [Tags] skip_if_stable/ocata skip_if_stable/pike
L2GatewayOperations.Delete L2Gateway Connection ${L2GW_NAME1}
L2GatewayOperations.Delete L2Gateway Connection ${L2GW_NAME2}
L2GatewayOperations.Delete L2Gateway ${L2GW_NAME1}