aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_running.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/vpp_running.py')
-rw-r--r--test/vpp_running.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/vpp_running.py b/test/vpp_running.py
index f31a1327b4a..43377b65c6a 100644
--- a/test/vpp_running.py
+++ b/test/vpp_running.py
@@ -26,6 +26,7 @@ def use_running(cls):
RunningVPP.get_set_vpp_sock_files()
cls.get_stats_sock_path = RunningVPP.get_stats_sock_path
cls.get_api_sock_path = RunningVPP.get_api_sock_path
+ cls.get_memif_sock_path = RunningVPP.get_memif_sock_path
cls.run_vpp = RunningVPP.run_vpp
cls.quit_vpp = RunningVPP.quit_vpp
cls.vpp = RunningVPP
@@ -36,6 +37,7 @@ def use_running(cls):
class RunningVPP:
api_sock = "" # api_sock file path
stats_sock = "" # stats sock_file path
+ memif_sock = "" # memif sock path
socket_dir = "" # running VPP's socket directory
pid = None # running VPP's pid
returncode = None # indicates to the framework that VPP is running
@@ -49,6 +51,10 @@ class RunningVPP:
return cls.api_sock
@classmethod
+ def get_memif_sock_path(cls):
+ return cls.memif_sock
+
+ @classmethod
def run_vpp(cls):
"""VPP is already running -- skip this action."""
pass
@@ -112,6 +118,8 @@ class RunningVPP:
cls.api_sock = os.path.abspath(sock_file)
elif "stats.sock" in sock_file:
cls.stats_sock = os.path.abspath(sock_file)
+ elif "memif.sock" in sock_file:
+ cls.memif_sock = os.path.abspath(sock_file)
if not cls.api_sock:
print(
f"Error: Could not find a valid api.sock file "