Switch Connection ${devstack_conn_id}
${ip_list}= Create List @{EMPTY}
: FOR ${vm} IN @{vm_list}
- \ ${output}= Write Commands Until Prompt nova floating-ip-create ${external_net} | grep "${external_net}" 30s
+ \ ${output}= Write Commands Until Prompt neutron floatingip-create ${external_net} 30s
\ Log ${output}
- \ @{output_words} Split String ${output}
- \ Append To List ${ip_list} @{output_words}[3]
- \ ${output}= Write Commands Until Prompt nova floating-ip-associate ${vm} @{output_words}[3] 30s
+ \ @{ip} Get Regexp Matches ${output} [0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}
+ \ ${ip_length} Get Length ${ip}
+ \ Run Keyword If ${ip_length}>0 Append To List ${ip_list} @{ip}[0]
+ \ ... ELSE Append To List ${ip_list} None
+ \ ${output}= Write Commands Until Prompt nova floating-ip-associate ${vm} @{ip}[0] 30s
\ Log ${output}
[Return] ${ip_list}