Browse Source

Add router and external network configuration

configure-hook
James Page 3 years ago
parent
commit
5f2d12c306
  1. 17
      snap-overlay/bin/configure-openstack

17
snap-overlay/bin/configure-openstack

@ -119,6 +119,23 @@ openstack subnet show test-subnet || {
openstack subnet create --network test --subnet-range 192.168.222.0/24 test-subnet
}
openstack network show external || {
openstack network create --external \
--provider-physical-network=physnet1 \
--provider-network-type=flat external
}
openstack subnet show external-subnet || {
openstack subnet create --network external --subnet-range 10.20.20.0/24 \
--no-dhcp external-subnet
}
openstack router show test-router || {
openstack router create test-router
openstack router add subnet test-router test-subnet
openstack router set --external-gateway external test-router
}
# Glance
echo "Configuring Glance"

Loading…
Cancel
Save