Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix cosmetic issues in VIRL topologies
[csit.git]
/
resources
/
tools
/
topo_installation.py
diff --git
a/resources/tools/topo_installation.py
b/resources/tools/topo_installation.py
index
7fb60ac
..
660fb3b
100755
(executable)
--- 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():
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")
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:
# 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
# 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:
if ret != 0:
- print
("Installation unsuccessful:\n{}".format(err)
)
+ print
"Installation unsuccessful:\n{}".format(err
)
return ret
if __name__ == "__main__":
return ret
if __name__ == "__main__":