sed -i -- "s|distro=trusty|distro=$6|g" ./fetch-charms.sh
./fetch-charms.sh $6
+osdomname=''
+
case "$1" in
'nonha' )
cp $4/juju-deployer/ovs-$4-nonha.yaml ./bundles.yaml
;;
esac
-var=os-$4-$fea-$1
-if [ "$4" == "nosdn" ]; then
+if [ "$osdomname" != "''" ]; then
+ var=os-$4-$fea-$1-publicapi
+else
+ var=os-$4-$fea-$1
+fi
+
+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
+elif [ "$4" == "onos" ]; then
+ python genBundle.py -l deployconfig.yaml -s $var > bundles.yaml
fi
echo "... Deployment Started ...."
{% include 'heat.yaml' %}
{% include 'neutron-api.yaml' %}
{% include 'neutron-gateway.yaml' %}
-{% if os.network.controller == 'odl' %}{% include 'odl.yaml' %}{% endif %}
+{% if os.network.controller == 'odl' %}
+ {% include 'odl.yaml' %}
+{% elif os.network.controller == 'onos' %}
+ {% include 'onos.yaml' %}
+{% endif %}
{% if os.ha.mode == 'ha' %}
{% include 'haclusters.yaml' %}
{% endif %}
- hacluster-horizon:ha
- - heat:ha
- hacluster-heat:ha
+ - - ceilometer:ha
+ - hacluster-ceilometer:ha
{% if os.beta.hacluster_ceph_radosgw %}
- - ceph-radosgw:ha
- hacluster-ceph-radosgw:ha
neutron-security-groups: true
{% if os.network.controller == 'nosdn' %}
overlay-network-type: vxlan
-{% endif %}
-{% if os.network.controller == 'odl' %}
+{% elif os.network.controller == 'odl' %}
+ manage-neutron-plugin-legacy-mode: False
+{% elif os.network.controller == 'onos' %}
+ flat-network-providers: "*"
manage-neutron-plugin-legacy-mode: False
{% endif %}
{% if os.ha.mode == 'ha' %}
{% endif %}
{% if os.network.controller == 'odl' %}
plugin: ovs-odl
+{% elif os.network.controller == 'onos' %}
+ plugin: onos
{% endif %}
instance-mtu: 1400
to:
{% if os.network.dpdk %}
enable-dpdk: true
#dpdk-driver: uio_pci_generic
-{% endif %}
#data-port: ""
#default-socket-memory: 1024
#default-socket-cores: 1
+{% endif %}
{# Empty block to avoid bad block trim #}
--- /dev/null
+ onos-controller:
+ charm: local:{{ ubuntu.release }}/onos-controller
+ options:
+ #ext-port: "eth1"
+ #gateway-mac: "default"
+ to:
+ - "lxc:nodes=0"
- - neutron-openvswitch:neutron-plugin-api
- neutron-api:neutron-plugin-api
{% elif os.network.controller == 'odl' %}
- - - nova-compute:neutron-plugin
- - openvswitch-odl:neutron-plugin
- - - neutron-gateway
- - openvswitch-odl
- - - openvswitch-odl:ovsdb-manager
- - odl-controller:ovsdb-manager
- - - neutron-api-odl:odl-controller
- - odl-controller:controller-api
+ - - "neutron-api:neutron-plugin-api-subordinate"
+ - "neutron-api-odl:neutron-plugin-api-subordinate"
+ - - "nova-compute:neutron-plugin"
+ - "openvswitch-odl:neutron-plugin"
+ - - "neutron-gateway"
+ - "openvswitch-odl"
+ - - "openvswitch-odl:ovsdb-manager"
+ - "odl-controller:ovsdb-manager"
+ - - "neutron-api-odl:odl-controller"
+ - "odl-controller:controller-api"
+{% elif os.network.controller == 'onos' %}
+ - - "neutron-api:neutron-plugin-api-subordinate"
+ - "neutron-api-onos:neutron-plugin-api-subordinate"
+ - - "nova-compute:neutron-plugin"
+ - "openvswitch-onos:neutron-plugin"
+ - - "neutron-gateway"
+ - "openvswitch-onos"
+ - - "openvswitch-onos:ovsdb-manager"
+ - "onos-controller:ovsdb-manager"
+ - - "neutron-api-onos:onos-controller"
+ - "onos-controller:controller-api"
{% endif %}
cinder-ceph:
charm: local:{{ ubuntu.release }}/cinder-ceph
{% endif %}
-{% if os.network.controller == 'nosdn' %}{% include 'neutron-ovs.yaml' %}
+{% if os.network.controller == 'nosdn' %}
+ {% include 'neutron-ovs.yaml' %}
{% elif os.network.controller == 'odl' %}
neutron-api-odl:
charm: local:{{ ubuntu.release }}/neutron-api-odl
openvswitch-odl:
charm: local:{{ ubuntu.release }}/openvswitch-odl
{% elif os.network.controller == 'nons' %}
- openvswitch-onos:
- charm: local:{{ ubuntu.release }}/openvswitch-onos
neutron-api-onos:
charm: local:{{ ubuntu.release }}/neutron-api-onos
options:
overlay-network-type: 'vxlan'
security-groups: True
+ openvswitch-onos:
+ charm: local:{{ ubuntu.release }}/openvswitch-onos
{% endif %}
{% if os.lxd %}
lxd: