adding vm scripts
diff --git a/onos-build-vm.py b/onos-build-vm.py
index 75dc322..ae4cfef 100755
--- a/onos-build-vm.py
+++ b/onos-build-vm.py
@@ -30,6 +30,25 @@
# end with expect prompt
vm.expect( prompt, timeout=1200 )
+ vm.spawn( 'git clone https://gerrit.onlab.us/onos-next/' )
+ vm.expect("Username for 'https://gerrit.onlab.us':", timeout=30)
+ vm.sendline('vm')
+ vm.expect("Password for 'https://vm@gerrit.onlab.us':", timeout=30)
+ vm.sendline('lAEi5gM/iFF3')
+
+ vm.expect( prompt, timeout=1200 )
+
+ vm.sendline('ssh 127.0.0.1')
+ vm.expect('.*connecting (yes/no)?')
+ vm.sendline('yes')
+ vm.sendline('exit')
+
+ vm.expect( prompt, timeout=1200 )
+
+ vm.sendline( 'bash onos-setup.sh' )
+
+
+
def vmdk2size( vmdk ):
"Return virtual disk size (in bytes) of vmdk image"
output = check_output( [ 'file', vmdk ] )