labname="default"
             ./cleanvm.sh
             cp ../labconfig/default/deployment.yaml ./
+            cp ../labconfig/default/deployconfig.yaml ./
             ;;
     esac
 fi
         enableautomode eth1.1201 AUTO "172.16.121.3/24" compute || true
         enableautomode eth1.1201 AUTO "172.16.121.3/24" control || true
         ;;
-    'cengnpod1' )
-        maas refresh
-        enableautomode eth2 AUTO "172.16.20.0/24" || true
-        ;;
 esac
 
 enable_if
 
 MAAS pre requisite before deploying the solution:
 =================================================
 
-MAAS version 1.8.0 or latest should be installed and configure 
+MAAS version 1.9.3 or latest should be installed and configure
 from ppa:maas/stable
 
 Please do the following once you have configure the MAAS cluster and regional
 controller.
 
-1. Create two KVM virtual machine and have it named as bootstrap.maas and 
+1. Create two KVM virtual machine and have it named as bootstrap.maas and
    node1.maas
-2. Maually add chassis in MAAS with virsh as option and have both nodes listed 
+2. Maually add chassis in MAAS with virsh as option and have both nodes listed
    and commionined in MAAS.
-3. Have all other physical nodes added into maas by PXE boot the nodes and 
-   make sure node gets pxe booted theroug MAAS.
+3. Have all other physical nodes added into maas by PXE boot the nodes and
+   make sure node gets pxe booted through MAAS.
 4. Tag all physical nodes as physical.
-5. Tag bootstrap.maas as bootstrap and nodea.maas as neutron and gateway.
+5. Tag bootstrap.maas as bootstrap and node1.maas as neutron and gateway.
 
-install juju 
+install juju
 ============
 
 add juju stable ppa by running command sudo apt-add-repository ppa:juju/stable
 
 run the following commands to clone a git repository and run the bundle.
 
-git clone https://narindergupta@gerrit.opnfv.org/gerrit/joid
-# to depploy odl with kilo in nonha mode
-./deploy.sh -s odl -o kilo -t nonha
+git clone https://gerrit.opnfv.org/gerrit/joid.git
 
-# to deploy openstail with kilo in nonha mode
-./deply.sh -s opencontrail -o kilo -t nonha
+copy the environments.yaml file from ~/.juju/ to joid/ci/
+
+# to deploy odl with mitaka in nonha mode
+./deploy.sh -s odl -o mitaka -t nonha
+
+# to deploy opencontail with liberty in nonha mode
+./deply.sh -s opencontrail -o liberty -t nonha
 
 NOTE: Wait for approximately 30-45 minutes and your openstack will be ready to use.
 
 
+++ /dev/null
-# This file defines the deployment for the MAAS environment which is to be
-# deployed and automated.
-opnfv:
-    # Defines the openstack release needs to be get installed.
-    release:B
-    # Defines the openstack release needs to be get installed.
-    openstack:liberty
-    # Defines the sdn plugin to be get installed.
-    sdn:odl
-    # Defines the ha type to be get installed.
-    type:ha
-    # Defines the lab where release to be get installed.
-    lab:default
 
 ## Parse Network config
 ##
 
-EXTERNAL_NETWORK=`grep floating-ip-range deployconfig.yaml | cut -d ' ' -f 4 `
+if [ -f ./deployconfig.yaml ];then
+    EXTERNAL_NETWORK=`grep floating-ip-range deployconfig.yaml | cut -d ' ' -f 4 `
 
-# split EXTERNAL_NETWORK=first ip;last ip; gateway;network
+    # split EXTERNAL_NETWORK=first ip;last ip; gateway;network
 
-EXTNET=(${EXTERNAL_NETWORK//,/ })
+    EXTNET=(${EXTERNAL_NETWORK//,/ })
 
-EXTNET_FIP=${EXTNET[0]}
-EXTNET_LIP=${EXTNET[1]}
-EXTNET_GW=${EXTNET[2]}
-EXTNET_NET=${EXTNET[3]}
+    EXTNET_FIP=${EXTNET[0]}
+    EXTNET_LIP=${EXTNET[1]}
+    EXTNET_GW=${EXTNET[2]}
+    EXTNET_NET=${EXTNET[3]}
 
-neutron subnet-create ext-net --name ext-subnet \
-   --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
-      --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
+    neutron subnet-create ext-net --name ext-subnet \
+       --allocation-pool start=$EXTNET_FIP,end=$EXTNET_LIP \
+          --disable-dhcp --gateway $EXTNET_GW $EXTNET_NET
+fi
 
 # create vm network
 neutron net-create demo-net
 
       - ifname: eth0
         spaces: [admin]
         mac: ["00:a0:a5:90:89:a8"]
+      - ifname: eth3
+        spaces: [data]
+        mac: ["00:a0:a5:90:89:a7"]
       power:
         type: ipmi
         address: 10.21.5.12
       - ifname: eth0
         spaces: [admin]
         mac: ["00:a0:a5:90:89:28"]
+      - ifname: eth3
+        spaces: [data]
+        mac: ["00:a0:a5:90:89:27"]
       power:
         type: ipmi
         address: 10.21.5.13
       - ifname: eth0
         spaces: [admin]
         mac: ["00:a0:a5:89:30:c6"]
+      - ifname: eth3
+        spaces: [data]
+        mac: ["00:a0:a5:89:30:c5"]
       power:
         type: ipmi
         address: 10.21.5.14
       - ifname: eth0
         spaces: [admin]
         mac: ["00:a0:a5:90:89:94"]
+      - ifname: eth3
+        spaces: [data]
+        mac: ["00:a0:a5:90:89:93"]
       power:
         type: ipmi
         address: 10.21.5.15
       - ifname: eth0
         spaces: [admin]
         mac: ["00:a0:a5:90:89:0e"]
+      - ifname: eth3
+        spaces: [data]
+        mac: ["00:a0:a5:90:89:0d"]
       power:
         type: ipmi
         address: 10.21.5.16
 
--- /dev/null
+opnfv:
+  admNetwork: 192.168.122.1
+  ceph-disk: /srv
+  dataNetwork: ''
+  ext-port: eth1
+  floating-ip-range: 192.168.122.30,192.168.122.49,192.168.122.1,192.168.122.0/24
+  interface-enable: ''
+  storageNetwork: ''