From: Jamo Luhrsen Date: Wed, 29 Mar 2017 21:18:07 +0000 (-0700) Subject: refactor vm ip discovery to use new keyword [0] X-Git-Tag: release/carbon~174 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=a69dbb8b38f972b9170ef0002d405ce2415d088a;p=integration%2Ftest.git refactor vm ip discovery to use new keyword [0] [0] "Collect VM IP Addresses" Change-Id: Ie75c6f84b7a2c2d6cc4976bd706b776bdbbd372c Signed-off-by: Jamo Luhrsen --- diff --git a/csit/suites/netvirt/ElanService/ElanService.robot b/csit/suites/netvirt/ElanService/ElanService.robot index 5b1320243c..3ab20291bc 100644 --- a/csit/suites/netvirt/ElanService/ElanService.robot +++ b/csit/suites/netvirt/ElanService/ElanService.robot @@ -98,7 +98,8 @@ SingleElan SuiteSetup : FOR ${VM} IN @{VM_INSTANCES_ELAN1} \ Wait Until Keyword Succeeds 25s 5s Verify VM Is ACTIVE ${VM} Log Get IP address for ELAN1 - ${VM_IP_ELAN1} Wait Until Keyword Succeeds 30s 10s Verify VMs received IP ${VM_INSTANCES_ELAN1} + Wait Until Keyword Succeeds 30s 10s Collect VM IP Addresses true @{VM_INSTANCES_ELAN1} + ${VM_IP_ELAN1} ${DHCP_IP_ELAN1} Collect VM IP Addresses false @{VM_INSTANCES_ELAN1} Log ${VM_IP_ELAN1} Set Suite Variable ${VM_IP_ELAN1} Log Get MACAddr for ELAN1 @@ -151,11 +152,3 @@ Create SecurityGroup Neutron Security Group Rule Create ${sg_name} direction=egress protocol=icmp remote_ip_prefix=0.0.0.0/0 Neutron Security Group Rule Create ${sg_name} direction=ingress port_range_max=65535 port_range_min=1 protocol=udp remote_ip_prefix=0.0.0.0/0 Neutron Security Group Rule Create ${sg_name} direction=egress port_range_max=65535 port_range_min=1 protocol=udp remote_ip_prefix=0.0.0.0/0 - -Verify VMs received IP - [Arguments] ${VM_INSTANCES} - [Documentation] Verify VM received IP - ${VM_IP} ${DHCP_IP} Collect VM IP Addresses @{VM_INSTANCES} - Log ${VM_IP} - Should Not Contain ${VM_IP} None - [Return] ${VM_IP}