- Login With Public Key ${MININET_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
- ${VTNC_FILENAME}= Catenate SEPARATOR=/ ${WORKSPACE} vtn_coordinator.tar.bz2
- Execute Command tar -C/ -jxvf ${VTNC_FILENAME}
- Execute Command /usr/local/vtn/sbin/db_setup
- Execute Command /usr/local/vtn/bin/vtn_start
- Execute Command /usr/local/vtn/bin/unc_dmctl status
- Execute Command /usr/local/vtn/sbin/db_setup
- Execute Command sed -i 's/odcdrv_ping_interval = 30/odcdrv_ping_interval = 10/g' /usr/local/vtn/modules/odcdriver.conf
- Execute Command sed -i 's/physical_attributes_read_interval = 40/physical_attributes_read_interval = 15/g' /usr/local/vtn/modules/vtndrvintf.conf
- Execute Command /usr/local/vtn/bin/vtn_start
- Execute Command /usr/local/vtn/bin/unc_dmctl status
- Execute Command /usr/local/vtn/bin/drvodc_control loglevel trace
- Execute Command /usr/local/vtn/bin/lgcnw_control loglevel trace
- Execute Command exit
+ SSHLibrary.Login_With_Public_Key ${ODL_SYSTEM_USER} ${USER_HOME}/.ssh/${SSH_KEY} any
+ SSHLibrary.Execute Command sudo mkdir -p /usr/local/vtn
+ SSHLibrary.Execute Command sudo chown jenkins /usr/local/vtn
+ SSHLibrary.Execute Command sudo yum install -q -y http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-2.noarch.rpm
+ SSHLibrary.Execute Command sudo yum install -q -y postgresql93-libs postgresql93 postgresql93-server postgresql93-contrib postgresql93-odbc-09.03.0400
+ Run Keyword If '${ODL_STREAM}' == 'boron' or '${ODL_STREAM}' == 'carbon' Download VtnCo Distribution
+ ... ELSE SSHLibrary.Execute Command tar -C/ -jxvf ${WORKSPACE}/${BUNDLEFOLDER}/externalapps/${vtn_dist}*-bin.tar.bz2
+ SSHLibrary.Execute Command /usr/local/vtn/sbin/db_setup
+ SSHLibrary.Execute Command /usr/local/vtn/bin/vtn_start
+ SSHLibrary.Execute Command /usr/local/vtn/bin/unc_dmctl status
+ SSHLibrary.Execute Command /usr/local/vtn/sbin/db_setup
+ SSHLibrary.Execute Command sed -i 's/odcdrv_ping_interval = 30/odcdrv_ping_interval = 10/g' /usr/local/vtn/modules/odcdriver.conf
+ SSHLibrary.Execute Command sed -i 's/physical_attributes_read_interval = 40/physical_attributes_read_interval = 15/g' /usr/local/vtn/modules/vtndrvintf.conf
+ SSHLibrary.Execute Command /usr/local/vtn/bin/vtn_start
+ SSHLibrary.Execute Command /usr/local/vtn/bin/unc_dmctl status
+ SSHLibrary.Execute Command /usr/local/vtn/bin/drvodc_control loglevel trace
+ SSHLibrary.Execute Command /usr/local/vtn/bin/lgcnw_control loglevel trace
+ SSHLibrary.Execute Command exit
+
+Download VtnCo Distribution
+ Run Keyword If '${ODL_STREAM}' == 'boron' SSHLibrary.Execute Command wget "${nexus_path}/${boron}/maven-metadata.xml"
+ ... ELSE IF '${ODL_STREAM}' == 'carbon' SSHLibrary.Execute Command wget "${nexus_path}/${carbon}/maven-metadata.xml"
+ Run Keyword If '${ODL_STREAM}' == 'boron' or '${ODL_STREAM}' == 'carbon' SSHLibrary.Get_file maven-metadata.xml
+ ${time_stamp}= XML.Get Element Text maven-metadata.xml xpath=.//snapshot/timestamp
+ ${build_number}= XML.Get Element Text maven-metadata.xml xpath=.//snapshot/buildNumber
+ Run Keyword If '${ODL_STREAM}' == 'boron' SSHLibrary.Execute Command wget '${nexus_path}/${boron}/${vtn_dist}-6.3.2-${time_stamp}-${build_number}-bin.tar.bz2'
+ ... ELSE IF '${ODL_STREAM}' == 'carbon' SSHLibrary.Execute Command wget '${nexus_path}/${carbon}/${vtn_dist}-6.4.0-${time_stamp}-${build_number}-bin.tar.bz2'
+ SSHLibrary.Execute Command tar -C/ -jxvf ${vtn_dist}*-bin.tar.bz2