Neutron: use "OSC show -f value -c id" instead of "OSC list + grep"
We should leverage server-side filtering.
Change-Id: I3deef791868769b0b7cfc405d73dff57458ca427
diff --git a/lib/tempest b/lib/tempest
index f43036e..2816740 100644
--- a/lib/tempest
+++ b/lib/tempest
@@ -242,8 +242,7 @@
# the public network (for floating ip access) is only available
# if the extension is enabled.
if is_networking_extension_supported 'external-net'; then
- public_network_id=$(openstack network list | grep $PUBLIC_NETWORK_NAME | \
- awk '{print $2}')
+ public_network_id=$(openstack network show -f value -c id $PUBLIC_NETWORK_NAME)
fi
iniset $TEMPEST_CONFIG DEFAULT use_syslog $SYSLOG