juju status > status.txt
if [ "$(grep -c "waiting" status.txt )" -ge 4 ]; then
echo " still waiting for machines ..."
- if [ $timeoutiter -ge 240 ]; then
+ if [ $timeoutiter -ge 360 ]; then
retval=1
fi
timeoutiter=$((timeoutiter+1))
vip: {{ opnfv.vip.neutron }}
{% endif %}
{% if os.network.controller == 'nosdn' %}
- flat-network-providers: "*"
+ flat-network-providers: physnet1
{% if os.network.dvr %}
overlay-network-type: vxlan
{% endif %}
{% elif os.network.controller == 'odl' %}
manage-neutron-plugin-legacy-mode: False
+ flat-network-providers: physnet1
{% elif os.network.controller == 'onos' %}
- flat-network-providers: "*"
+ flat-network-providers: physnet1
manage-neutron-plugin-legacy-mode: False
{% endif %}
{% if os.beta.public_api %}
{% if os.network.controller == 'nosdn' %}
{% if opnfv.ext_port is defined %}
{% if opnfv.data_port is defined %}
- bridge-mappings: physnet1:br-data external:br-ex
- data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+ bridge-mappings: physnet1:br-ex physnet2:br-data
+ data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
{% else %}
- bridge-mappings: external:br-ex
+ bridge-mappings: physnet1:br-ex
data-port: br-ex:{{ opnfv.ext_port }}
{% endif %}
{% endif %}
{% elif os.network.controller == 'odl' %}
plugin: ovs-odl
{% if opnfv.ext_port is defined %}
- ext-port: {{ opnfv.ext_port }}
+{% if opnfv.data_port is defined %}
+ bridge-mappings: physnet1:br-ex physnet2:br-data
+ data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
+{% else %}
+ bridge-mappings: physnet1:br-ex
+ data-port: br-ex:{{ opnfv.ext_port }}
+{% endif %}
{% endif %}
{% else %}
{% if opnfv.ext_port is defined %}
{% if os.network.dvr %}
{% if os.network.controller == 'nosdn' %}
{% if opnfv.data_port is defined %}
- bridge-mappings: physnet1:br-data external:br-ex
- data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+ bridge-mappings: physnet1:br-ex physnet2:br-data
+ data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
{% else %}
- bridge-mappings: external:br-ex
+ bridge-mappings: physnet1:br-ex
data-port: br-ex:{{ opnfv.ext_port }}
{% endif %}
{% else %}
vip: {{ opnfv.vip.neutron }}
{% endif %}
{% if os.network.controller == 'nosdn' %}
- flat-network-providers: "*"
+ flat-network-providers: physnet1
{% if os.network.dvr %}
overlay-network-type: vxlan
{% endif %}
{% elif os.network.controller == 'odl' %}
manage-neutron-plugin-legacy-mode: False
+ flat-network-providers: physnet1
{% elif os.network.controller == 'onos' %}
- flat-network-providers: "*"
+ flat-network-providers: physnet1
manage-neutron-plugin-legacy-mode: False
{% endif %}
{% if os.beta.public_api %}
{% if os.network.controller == 'nosdn' %}
{% if opnfv.ext_port is defined %}
{% if opnfv.data_port is defined %}
- bridge-mappings: physnet1:br-data external:br-ex
- data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+ bridge-mappings: physnet1:br-ex physnet2:br-data
+ data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
{% else %}
- bridge-mappings: external:br-ex
+ bridge-mappings: physnet1:br-ex
data-port: br-ex:{{ opnfv.ext_port }}
{% endif %}
{% endif %}
{% elif os.network.controller == 'odl' %}
plugin: ovs-odl
{% if opnfv.ext_port is defined %}
- ext-port: {{ opnfv.ext_port }}
+{% if opnfv.data_port is defined %}
+ bridge-mappings: physnet1:br-ex physnet2:br-data
+ data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
+{% else %}
+ bridge-mappings: physnet1:br-ex
+ data-port: br-ex:{{ opnfv.ext_port }}
+{% endif %}
{% endif %}
{% else %}
{% if opnfv.ext_port is defined %}
{% if os.network.dvr %}
{% if os.network.controller == 'nosdn' %}
{% if opnfv.data_port is defined %}
- bridge-mappings: physnet1:br-data external:br-ex
- data-port: br-data:{{ opnfv.data_port }} br-ex:{{ opnfv.ext_port }}
+ bridge-mappings: physnet1:br-ex physnet2:br-data
+ data-port: br-ex:{{ opnfv.ext_port }} br-data:{{ opnfv.data_port }}
{% else %}
- bridge-mappings: external:br-ex
+ bridge-mappings: physnet1:br-ex
data-port: br-ex:{{ opnfv.ext_port }}
{% endif %}
{% else %}
config['ubuntu']['release'] = 'trusty'
if 'liberty' in extra:
config['os']['release'] = 'liberty'
+if 'xenial' in extra:
+ config['ubuntu']['release'] = 'xenial'
+ if 'newton' in extra:
+ config['os']['release'] = 'newton'
if 'dishypcon' in extra:
config['os']['hyperconverged'] = False
neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net \
--router:external=True \
--provider:network_type flat \
- --provider:physical_network external
+ --provider:physical_network physnet1
neutron subnet-show ext-subnet > /dev/null 2>&1 || neutron subnet-create ext-net \
--name ext-subnet --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
--disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
else
- neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net --router:external=True
+ neutron net-show ext-net > /dev/null 2>&1 || neutron net-create ext-net --router:external=True \
+ --provider:physical_network physnet1
+
neutron subnet-show ext-subnet > /dev/null 2>&1 || neutron subnet-create ext-net \
--name ext-subnet --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
--disable-dhcp --gateway $EXTNET_GW $EXTNET_NET