aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/srv6-mobile/extra/runner.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2023-08-15 19:05:26 -0400
committerAndrew Yourtchenko <ayourtch@gmail.com>2023-08-16 19:53:12 +0000
commit7b8b4652693a87233c9aea313959a9cede3df0f4 (patch)
treec9e9275c0d77015922e3d9411a116151208bd8ae /src/plugins/srv6-mobile/extra/runner.py
parentd826a602696eb337dcce191d7d24ae1869e81ec2 (diff)
tests docs: update python3 venv packages
- Package update performed by 1. updating pip, pip-tools, setuptools 2. 'make test-refresh-deps' on ubuntu 22.04 3. fixing 'make test' and 'make docs' issues on ubuntu 22.04 4. 'make test-refresh-deps' on ubuntu 20.04 - Add dependency for 'make test-refresh-deps' to insure python venv is set up. - Update of python formatter, black, caused reformating of 41 python code files. Type: make Change-Id: I7cafdf4b5189065ac57cb6b254937f6e0897a924 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/plugins/srv6-mobile/extra/runner.py')
-rwxr-xr-xsrc/plugins/srv6-mobile/extra/runner.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/plugins/srv6-mobile/extra/runner.py b/src/plugins/srv6-mobile/extra/runner.py
index eee89d7d41a..31201935120 100755
--- a/src/plugins/srv6-mobile/extra/runner.py
+++ b/src/plugins/srv6-mobile/extra/runner.py
@@ -24,7 +24,6 @@ class ContainerStartupError(Exception):
class Container(object):
-
tmp = "/tmp"
cmd = "vppctl -s 0:5002"
cmd_bash = "/bin/bash"
@@ -69,7 +68,6 @@ class Container(object):
@classmethod
def new(cls, client, image, name):
-
temp = join(cls.tmp, name)
if isdir(temp):
rmtree(temp)
@@ -241,7 +239,6 @@ class Containers(object):
self.image = image
def tmp_render(self, path, template, kwargs):
-
with open(path, "w") as fo:
fo.write(template.render(**kwargs))
@@ -349,7 +346,6 @@ class Networks(object):
class Program(object):
-
image = "srv6m-image"
name_prefix = "hck"
@@ -386,7 +382,6 @@ class Program(object):
return "{}-{}".format(self.name_prefix, name)
def stop_containers(self):
-
for name in self.instance_names:
instance = self.containers.get(self.get_name(name))
if instance:
@@ -398,7 +393,6 @@ class Program(object):
network.rem()
def start_containers(self):
-
self.stop_containers()
networks = list()
@@ -2457,7 +2451,6 @@ class Program(object):
p.show2()
def status_containers(self):
-
print("Instances:")
for i, name in enumerate(self.instance_names):
@@ -2585,7 +2578,6 @@ def get_args():
def main(op=None, prefix=None, verbose=None, image=None, index=None, command=None):
-
if verbose:
basicConfig(level=verbose_levels[verbose])