File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,12 @@ if ! openstack security group show ${LAB_NAME_PREFIX}-jump-secgroup -f json 2> /
146
146
--description " ping"
147
147
fi
148
148
149
- if ! METAL_LB_IP=$( openstack port show metallb-vip-0-port -f json 2> /dev/null | jq -r ' .fixed_ips[0].ip_address' ) ; then
149
+ if ! METAL_LB_IP=$( openstack port show ${LAB_NAME_PREFIX} - metallb-vip-0-port -f json 2> /dev/null | jq -r ' .fixed_ips[0].ip_address' ) ; then
150
150
echo " Creating the MetalLB VIP port"
151
- METAL_LB_IP=$( openstack port create --security-group ${LAB_NAME_PREFIX} -http-secgroup --network ${LAB_NAME_PREFIX} -net metallb-vip-0-port -f json | jq -r ' .fixed_ips[0].ip_address' )
151
+ METAL_LB_IP=$( openstack port create --security-group ${LAB_NAME_PREFIX} -http-secgroup --network ${LAB_NAME_PREFIX} -net ${LAB_NAME_PREFIX} - metallb-vip-0-port -f json | jq -r ' .fixed_ips[0].ip_address' )
152
152
fi
153
153
154
- METAL_LB_PORT_ID=$( openstack port show metallb-vip-0-port -f value -c id)
154
+ METAL_LB_PORT_ID=$( openstack port show ${LAB_NAME_PREFIX} - metallb-vip-0-port -f value -c id)
155
155
156
156
if ! METAL_LB_VIP=$( openstack floating ip list --port ${METAL_LB_PORT_ID} -f json 2> /dev/null | jq -r ' .[]."Floating IP Address"' ) ; then
157
157
echo " Creating the MetalLB VIP floating IP"
You can’t perform that action at this time.
0 commit comments