aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/topo_installation.py
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2016-04-04 15:26:41 +0200
committerGerrit Code Review <gerrit@fd.io>2016-04-05 14:22:01 +0000
commitbea34e37b99cd3312dfb5733edea7586fbc8e1c6 (patch)
tree6d76ba4c8119292226486dcd081dd46a21c7a852 /resources/tools/topo_installation.py
parent4c597cafd320c1e68f81768e14abc9f89bbc07e2 (diff)
Add tag support to boostrap-verify-perf
- support tags in vpp-verify-perfomance-* jenkins jobs Change-Id: I7e3abfe9e552a3f2fa9ebf95df9b48bcbae3561a Signed-off-by: pmikus <pmikus@cisco.com>
Diffstat (limited to 'resources/tools/topo_installation.py')
-rwxr-xr-xresources/tools/topo_installation.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/resources/tools/topo_installation.py b/resources/tools/topo_installation.py
index 7fb60aca15..660fb3b946 100755
--- a/resources/tools/topo_installation.py
+++ b/resources/tools/topo_installation.py
@@ -23,6 +23,8 @@ from yaml import load
from resources.libraries.python.ssh import SSH
def main():
+ """Copy and installation of VPP packages."""
+
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--topo", required=True,
help="Topology file")
@@ -45,12 +47,13 @@ def main():
# Copy packages from local path to installation dir
for deb in packages:
- ssh.scp(local_path=deb,remote_path=install_dir)
+ ssh.scp(local_path=deb, remote_path=install_dir)
# Installation of VPP deb packages
- ret, _, err = ssh.exec_command("dpkg -i {}*.deb".format(install_dir))
+ ret, _, err = ssh.exec_command_sudo(
+ "dpkg -i {}*.deb".format(install_dir))
if ret != 0:
- print("Installation unsuccessful:\n{}".format(err))
+ print "Installation unsuccessful:\n{}".format(err)
return ret
if __name__ == "__main__":