Use iproute instead of nameserver to get gw 97/65697/3
authorSam Hague <shague@redhat.com>
Sat, 18 Nov 2017 20:29:11 +0000 (15:29 -0500)
committerSam Hague <shague@redhat.com>
Sat, 18 Nov 2017 22:52:37 +0000 (17:52 -0500)
commitdc784f488a64deb07b7342fd6b0428cdde9a3179
tree03d3e68b68e5f13ff2d10a36fcbc264d34c08e87
parentd278dff10a574607d77a7570b89df07e6411bf31
Use iproute instead of nameserver to get gw

The nameserver line is only included when a vm fails
to ping the gw and you see the below messages in the
console log:

=== pinging gateway failed, debugging connection ===

The iproute line is always included:

ip-route:169.254.169.254 via 10.20.20.2 dev eth0

The old code worked because at least one of the vms
in the list would hit the gateway failed block and
get the gw from the nameserver line. The old code
also would only copy the gw address once for all
the vms because it kept a list with size 1 for
the address. The new Get VM IPs tries to get the
gw for each vm and not just one for the whole list
of vms. Timing differences might end up not getting
the nameserver line, so instead use the metadata
line which is always present.

Change-Id: I72637575b5171d3eaad6110ed2e8bc2cefed25ed
Signed-off-by: Sam Hague <shague@redhat.com>
csit/libraries/OpenStackOperations.robot
csit/variables/Variables.robot