esac
# lets put the if seperateor as "," as this will save me from world.
+fea=""
IFS=","
-
for feature in $5; do
+ if [ "$fea" == "" ]; then
+ fea=$feature
+ else
+ fea=$fea"_"$feature
+ fi
case "$feature" in
'ipv6' )
sed -i -- 's/#prefer-ipv6: true/prefer-ipv6: true/g' ./bundles.yaml
;;
esac
+var=os-$4-$fea-$1
+if [ "$4" == "nosdn" ]; then
+ python genBundle.py -l deployconfig.yaml -s $var > bundles.yaml
+elif [ "$4" == "odl" ]; then
+ python genBundle.py -l deployconfig.yaml -s $var > bundles.yaml
+fi
+
echo "... Deployment Started ...."
juju-deployer -vW -d -t 3600 -c bundles.yaml $6-"$2"-nodes
check_status
{% if opnfv.spaces_dict.data is defined %}
- os-data-network: {{ opnfv.dataNetwork }}
+ os-data-network: {{ opnfv.spaces_dict.data.cidr }}
{% endif %}
{% if opnfv.spaces_dict.storage is defined %}
#ceph-cluster-network: {{ opnfv.spaces_dict.storage.cidr }}
{% endif %}
-{% if os.network.ipv6 == 'true' %}
+{% if os.network.ipv6 %}
prefer-ipv6: {{ os.network.ipv6 }}
{% endif %}
{% if os.network.dvr %}
opnfvlabcfg["opnfv"]["units"]=len(labcfg["lab"]["racks"][0]["nodes"])
opnfvlabcfg["opnfv"]["admin_password"]="openstack"
opnfvlabcfg["opnfv"]["storage"]=labcfg["opnfv"]["storage"]
+opnfvlabcfg["opnfv"]["spaces"]=labcfg["opnfv"]["spaces"]
with open('deployment.yaml', 'wa') as opnfvf:
yaml.dump(opnfvcfg, opnfvf, default_flow_style=False)
# Change features
if 'lxd' in features:
config['os']['lxd'] = True
-if 'drv' in features:
+if 'dvr' in features:
config['os']['network']['dvr'] = True
if 'ipv6' in features:
config['os']['network']['ipv6'] = True