${output}= Exec Command ${conn_id} ${NETSTAT}
Should Contain ${output} ${OVSDBPORT}
@{list_to_check}= Create List ${odl_ip}
- Utils.Check For Elements At URI ${HWVTEP_NETWORK_TOPOLOGY} ${list_to_check} session
+ Wait Until Keyword Succeeds 30s 2s Utils.Check For Elements At URI ${HWVTEP_NETWORK_TOPOLOGY} ${list_to_check} session
Create Verify L2Gateway
[Arguments] ${bridge_name} ${intf_name} ${gw_name}
Utils.Check For Elements At URI ${L2GW_LIST_REST_URL} ${list_to_check} session
[Return] ${l2gw_output}
+Update And Verify L2Gateway
+ [Arguments] ${bridge_name} ${gw_name} ${intf_name_1} ${intf_name_2}
+ [Documentation] Keyword to add interface {intf_name_2} to an existing L2 Gateway ${gw_name} for bridge ${bridge_name} (Using Neutron CLI).
+ ${l2gw_output}= OpenStackOperations.Update L2Gateway ${bridge_name} ${gw_name} ${intf_name_1} ${intf_name_2}
+ ${output}= OpenStackOperations.Get All L2Gateway
+ Log ${output}
+ Should Contain ${output} ${gw_name}
+ Should Contain ${output} ${intf_name_1}
+ Should Contain ${output} ${intf_name_2}
+ @{list_to_check}= Create List ${gw_name}
+ Utils.Check For Elements At URI ${L2GW_LIST_REST_URL} ${list_to_check} session
+ [Return] ${l2gw_output}
+
Delete L2Gateway
[Arguments] ${gw_name}
[Documentation] Keyword to delete the L2 Gateway ${gw_name} received in argument.
Utils.Check For Elements At URI ${L2GW_CONN_LIST_REST_URL} ${list_to_check} session
[Return] ${l2gw_output}
+Verify L2Gateway Connection
+ [Arguments] ${gw_name} ${net_name}
+ [Documentation] Keyword to verify existing L2 Gateway Connection for ${gw_name} to ${net_name} $(Using Neutron CLI).
+ ${l2gw_id}= OpenStackOperations.Get L2gw Id ${gw_name}
+ ${output}= OpenStackOperations.Get All L2Gateway Connection
+ Log ${output}
+ Should Contain ${output} ${l2gw_id}
+ @{list_to_check}= Create List ${l2gw_id}
+ Utils.Check For Elements At URI ${L2GW_CONN_LIST_REST_URL} ${list_to_check} session
+ [Return] ${l2gw_output}
+
Delete L2Gateway Connection
[Arguments] ${gw_name}
[Documentation] Delete the L2 Gateway connection existing for Gateway ${gw_name} received in argument (Using Neutron CLI).
Should Contain ${flow_output} table=52
${sMac_output} = Get Lines Containing String ${flow_output} table=52
Log ${sMac_output}
+
+Cleanup L2GW Optional Resources
+ [Documentation] Cleanup resources that are only allocated on certain combos...
+ 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.Delete Port ${HWVTEP_PORT_3}