Commit 8c884c5f authored by Jan Siersch's avatar Jan Siersch
Browse files

added option to create external network

parent d90e568f
......@@ -38,3 +38,10 @@ SDNCONTROL_IF_CTRL="eth1"
SDNCONTROL_IP_CTRL="10.1.1.13"
SDN_VLAN_RANGES="1200:1710"
USE_FLOATING_IP="true"
EXTERNAL_NETWORK_CIDR="134.60.30.0/24"
EXTERNAL_NETWORK_GATEWAY="134.60.30.1"
EXTERNAL_NETWORK_NAMESERVER="134.60.1.111"
FLOATING_IP_START="134.60.30.192"
FLOATING_IP_END="134.60.30.239"
......@@ -406,6 +406,23 @@ if [[ $doInstallNeutron == true ]]; then
# Verify Operation
neutron ext-list
if [[ $USE_FLOATING_IP == true ]]; then
# create external network
neutron net-create "external" \
--router:external "True" \
--provider:physical_network "external" \
--provider:network_type "flat"
neutron subnet-create "external" \
--name "external" \
--allocation-pool "start=$FLOATING_IP_START,end=$FLOATING_IP_END" \
--disable-dhcp \
--gateway "$EXTERNAL_NETWORK_GATEWAY" \
--dns-nameserver "$EXTERNAL_NETWORK_NAMESERVER" \
"$EXTERNAL_NETWORK_CIDR"
fi
fi
if [[ $doInstallDashboard == true ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment