Checkout version tag
diff --git a/onos-build-vm.py b/onos-build-vm.py
index 9ee1a43..f601648 100755
--- a/onos-build-vm.py
+++ b/onos-build-vm.py
@@ -17,6 +17,8 @@
print 'Cannot find Mininet build script. Exiting...'
sys.exit( 1 )
+onos_version='1.0.0'
+
# Import required functions from the Mininet build script
from build import bootAndRun, Prompt, OVFOSNameID, generateOVF, log, build, run
@@ -33,6 +35,11 @@
vm.sendline('sudo su - tutorial1')
vm.expect(prompt, timeout=20)
vm.sendline( 'git clone https://gerrit.onosproject.org/onos' )
+ vm.expect( prompt, timeout=30 )
+ vm.sendline( 'cd onos' )
+ vm.expect( prompt, timeout=30 )
+ vm.sendline( 'git checkout %s' % onos_version )
+
vm.expect( prompt, timeout=1200 )