aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/ContainerUtils.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-04-20 13:57:02 +0200
committerPeter Mikus <pmikus@cisco.com>2018-04-20 19:15:37 +0000
commitf3d66d9ca20e7fb2b153d83d809f005a93b76a8f (patch)
tree444526cae32cc31f75a363e995b82e85b9d6b538 /resources/libraries/python/ContainerUtils.py
parent4cc8b3a4b890ecd7cefcb22a5f2a2acd1036cf78 (diff)
FIX: Restart VPP in container before each test
Change-Id: Iec7045aadc0675e04b8c74cbe28f8b3f193bcf1f Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/python/ContainerUtils.py')
-rw-r--r--resources/libraries/python/ContainerUtils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/libraries/python/ContainerUtils.py b/resources/libraries/python/ContainerUtils.py
index 3bf3516e6d..4b891048fd 100644
--- a/resources/libraries/python/ContainerUtils.py
+++ b/resources/libraries/python/ContainerUtils.py
@@ -156,6 +156,12 @@ class ContainerManager(object):
self.engine.install_vpp()
self.engine.restart_vpp()
+ def restart_vpp_in_all_containers(self):
+ """Restart VPP on all containers."""
+ for container in self.containers:
+ self.engine.container = self.containers[container]
+ self.engine.restart_vpp()
+
def configure_vpp_in_all_containers(self, vat_template_file):
"""Configure VPP in all containers.