Resource ../variables/Variables.robot
Resource ../variables/netvirt/Variables.robot
Variables ../variables/netvirt/Modules.py
-Variables ../variables/netvirt/Exceptions_Whitelist.py
*** Keywords ***
Get Tenant ID From Security Group
\ ${output} = OpenStack CLI openstack server add floating ip ${vm} @{ip}[0]
[Return] ${ip_list}
+Remove Floating Ip From Vm
+ [Arguments] ${vm_name} ${fip}
+ [Documentation] Remove the Floating IP From VM Instance
+ ${output} = OpenStack CLI openstack server remove floating ip ${vm_name} ${fip}
+
Delete Floating IP
[Arguments] ${fip}
[Documentation] Delete floating ip with neutron request.
${port_id} = Collections.Get from List ${splitted_output} 0
[Return] ${port_id}
+Get Sub Port Id
+ [Arguments] ${portname}
+ [Documentation] Retrieve the first 10 chars of the UUID for the given port name
+ ${port_id} = OpenStackOperations.Get Port Id ${portname}
+ ${output} = String.Get Regexp Matches ${port_id} \\w{8}-\\w{2}
+ ${subport_id} = Collections.Get from List ${output} 0
+ [Return] ${subport_id}
+
Get Router Id
[Arguments] ${router1}
[Documentation] Retrieve the router id for the given router name
[Arguments] ${test_name}=${SUITE_NAME}.${TEST_NAME}
OpenStackOperations.Get OvsDebugInfo
BuiltIn.Run Keyword And Ignore Error DataModels.Get Model Dump ${HA_PROXY_IP} ${netvirt_data_models}
- KarafKeywords.Get Karaf Log Events From Test Start ${test_name}
- Run Keyword If "${FAIL_ON_EXCEPTIONS}"=="True" Fail If Exceptions Found During Test ${test_name} ${NETVIRT_EXCEPTIONS_WHITELIST}
+ Run Keyword If "${FAIL_ON_EXCEPTIONS}"=="True" KarafKeywords.Fail If Exceptions Found During Test ${test_name}
Get Test Teardown Debugs For SFC
[Arguments] ${test_name}=${TEST_NAME}
${port_mac} = Collections.Get from List ${splitted_output} 0
[Return] ${port_mac}
+Get Port Mac Address From Ip
+ [Arguments] ${ip}
+ [Documentation] Retrieve the mac address for a port that matches any given ip.
+ ${output} = OpenStack CLI openstack port list | grep -w ${ip} | awk '{print $5}'
+ ${splitted_output} = String.Split String ${output} ${EMPTY}
+ ${mac_addr} = Collections.Get from List ${splitted_output} 0
+ [Return] ${mac_addr}
+
Create L2Gateway
[Arguments] ${bridge_name} ${intf_name} ${gw_name}
[Documentation] Keyword to create an L2 Gateway ${gw_name} for bridge ${bridge_name} connected to interface ${intf_name} (Using Neutron CLI).
OpenStack Suite Setup
[Documentation] Wrapper teardown keyword that can be used in any suite running in an openstack environement
SetupUtils.Setup_Utils_For_Setup_And_Teardown
- @{loggers} = BuiltIn.Create List org.apache.karaf.shell.support.ShellUtil
+ @{loggers} = BuiltIn.Create List org.apache.karaf.shell.support.ShellUtil org.apache.sshd.server.session.ServerSessionImpl
Setuputils.Setup_Logging_For_Debug_Purposes_On_List_Or_All OFF ${loggers}
DevstackUtils.Devstack Suite Setup
@{tcpdump_port_6653_conn_ids} = OpenStackOperations.Start Packet Capture On Nodes tcpdump_port_6653 port 6653 @{OS_ALL_IPS}