Skip to content
Snippets Groups Projects
Commit 444fbfa8 authored by František Řezníček's avatar František Řezníček
Browse files

fix: NETWORK_ID has to be supplied for subnet creation

parent c087dffd
No related branches found
No related tags found
No related merge requests found
......@@ -92,11 +92,12 @@ openstack security group rule create --egress --proto tcp --remote-ip 0.0.0.0/0
if [ "${project_type}" == "group" ]; then
log_section_keypress "Create cloud private network and subnet, so far isolated (CIDR:${SUBNET_CIDR})"
openstack network create "${NETWORK_NAME}"
NETWORK_ID=$(openstack network show "${NETWORK_NAME}" -f value -c id)
openstack subnet create "${SUBNET_NAME}" --network "${NETWORK_ID}" --subnet-range "${SUBNET_CIDR}" --dns-nameserver 8.8.4.4 --dns-nameserver 8.8.8.8
else
NETWORK_ID=$(openstack network show "${NETWORK_NAME}" -f value -c id)
log_section_keypress "Re-use existing network (${NETWORK_NAME}) and subnet (${SUBNET_NAME})"
fi
NETWORK_ID=$(openstack network show "${NETWORK_NAME}" -f value -c id)
# ---------------------------------------------------------------------------
if [ "${EXTRA_VOLUME_SIZE_GB}" -gt 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment