Updating tutorial assets to work with 1.13.1

Change-Id: Icfa6c0b9a35e869b68a7c1ff394144a3ba0256c4
This commit is contained in:
Thomas Vachuska 2018-05-15 14:08:11 -07:00
parent 4b11fab8a0
commit 61f0e0b624
5 changed files with 7 additions and 17 deletions

View File

@ -1,11 +1,8 @@
#!/bin/bash #!/bin/bash
# -----------------------------------------------------------------------------
# Creates the ONOS cluster using 3 docker container instances.
# -----------------------------------------------------------------------------
export PATH="$PATH:bin:onos/bin" export PATH="$PATH:bin:onos/bin"
# Creates ONOS cluster using ONOS docker images # Creates ONOS cluster using ONOS docker images
ONOS_IMAGE=onosproject/onos:1.12.0 ONOS_IMAGE=onosproject/onos:1.13.1
SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub) SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub)
for i in {1..3}; do for i in {1..3}; do
@ -21,8 +18,8 @@ function waitForStart {
for i in {1..3}; do for i in {1..3}; do
echo "Waiting for onos-$i startup..." echo "Waiting for onos-$i startup..."
ip=$(docker container inspect onos-$i | grep \"IPAddress | cut -d: -f2 | sort -u | tr -d '", ') ip=$(docker container inspect onos-$i | grep \"IPAddress | cut -d: -f2 | sort -u | tr -d '", ')
for t in {1..30}; do for t in {1..60}; do
curl --fail -sS http://$ip:8181/onos/v1/cluster --user onos:rocks 1>/dev/null 2>&1 && break; curl --fail -sS http://$ip:8181/onos/v1/applications --user onos:rocks 1>/dev/null 2>&1 && break;
sleep 1; sleep 1;
done done
onos $ip summary >/dev/null 2>&1 onos $ip summary >/dev/null 2>&1
@ -37,6 +34,6 @@ ONOS_INSTANCES="$OC1 $OC2 $OC3"
waitForStart waitForStart
echo "Activating OpenFlow and ProxyARP applications..." echo "Activating OpenFlow and ProxyARP applications..."
onos $OC1 app activate openflow proxyarp onos $OC1 app activate org.onosproject.openflow proxyarp layout
onos $OC1 onos $OC1

View File

@ -1,10 +1,6 @@
#!/bin/bash #!/bin/bash
# -----------------------------------------------------------------------------
# Destroys the ONOS cluster by stopping the 3 docker containers.
# -----------------------------------------------------------------------------
# Creates ONOS cluster using ONOS docker images # Destroys ONOS cluster running as ONOS docker images
ONOS_IMAGE=onosproject/onos:1.12.0
SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub) SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub)
for i in {1..3}; do for i in {1..3}; do

View File

@ -3,7 +3,7 @@
# Exports the ONOS Tutorial VM into an OVA file for publishing. # Exports the ONOS Tutorial VM into an OVA file for publishing.
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
export VER=1.12.0 export VER=1.13.1
export OVA=/tmp/onos-tutorial-$VER.ova export OVA=/tmp/onos-tutorial-$VER.ova
rm -f $OVA rm -f $OVA
vboxmanage export "ONOS Tutorial" --output $OVA --manifest \ vboxmanage export "ONOS Tutorial" --output $OVA --manifest \

View File

@ -1,7 +1,4 @@
#!/bin/bash #!/bin/bash
# -----------------------------------------------------------------------------
# Prepars the ONOS Tutorial VM for export; run from the VM.
# -----------------------------------------------------------------------------
sudo chattr +i ~/.config/xfce4/desktop/icons* sudo chattr +i ~/.config/xfce4/desktop/icons*
destroyCluster destroyCluster
sudo mn -c sudo mn -c

View File

@ -2,6 +2,6 @@
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# Publishes the ONOS Tutorial OVA file. # Publishes the ONOS Tutorial OVA file.
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
export VER=1.12.0 export VER=1.13.1
export OVA=/tmp/onos-tutorial-$VER.ova export OVA=/tmp/onos-tutorial-$VER.ova
uploadToS3.py $OVA --secret $AWS_SECRET_ACCESS_KEY --key $AWS_ACCESS_KEY_ID --bucket onos --dest vm/ uploadToS3.py $OVA --secret $AWS_SECRET_ACCESS_KEY --key $AWS_ACCESS_KEY_ID --bucket onos --dest vm/