Verify Nova VM IP
[Arguments] ${vm_name}
- [Documentation] Keyword to verify if the VM has received IP, and to vefiry it is not null.
- ${vm_ip} ${dhcp_ip} Collect VM IP Addresses false ${vm_name}
- Log ${vm_ip}
+ [Documentation] Keyword to verify if the VM has received IP, and to verify it is not null.
+ @{vm_ip} ${dhcp_ip} = Get VM IPs ${vm_name}
Should Not Contain ${vm_ip} None
- [Return] ${vm_ip}
+ Should Not Contain ${dhcp_ip} None
+ [Return] @{vm_ip}[0]
Get L2gw Debug Info
[Documentation] Keyword to collect the general debug information required for HWVTEP Test Suite.
OpenStackOperations.Create Vm Instance With Port On Compute Node ${OVS_PORT_1} ${OVS_VM1_NAME} ${OVS_IP}
${vm_ip}= Wait Until Keyword Succeeds 60s 2s L2GatewayOperations.Verify Nova VM IP ${OVS_VM1_NAME}
Log ${vm_ip}
- Should Contain ${vm_ip[0]} ${port_ip_list[0]}
+ Should Contain ${vm_ip} ${port_ip_list[0]}
TC05 Create L2Gateway And Connection And Verify
${output}= L2GatewayOperations.Create Verify L2Gateway ${HWVTEP_BRIDGE} ${NS_PORT1} ${L2GW_NAME1}
OpenStackOperations.Create Vm Instance With Port On Compute Node ${OVS_PORT_2} ${OVS_VM2_NAME} ${OVS_IP}
${vm_ip}= Wait Until Keyword Succeeds 60s 2s L2GatewayOperations.Verify Nova VM IP ${OVS_VM2_NAME}
Log ${vm_ip}
- Should Contain ${vm_ip[0]} ${port_ip_list[2]}
+ Should Contain ${vm_ip} ${port_ip_list[2]}
${output}= L2GatewayOperations.Create Verify L2Gateway ${HWVTEP_BRIDGE} ${NS_PORT2} ${L2GW_NAME2}
Log ${output}
${output}= L2GatewayOperations.Create Verify L2Gateway Connection ${L2GW_NAME2} ${NET_2}