Bump VPP stable version: socksvr 55/21155/5
authorVratko Polak <vrpolak@cisco.com>
Fri, 9 Aug 2019 10:32:59 +0000 (12:32 +0200)
committerVratko Polak <vrpolak@cisco.com>
Fri, 9 Aug 2019 10:32:59 +0000 (12:32 +0200)
VPP changed the default socket path in:
https://gerrit.fd.io/r/c/vpp/+/21100

Instead of "default", explicit value is used now.
It coincides with VPP default one,
and is stored in Constants.py (except documentation).

The file name for robot side forwarded socket remains,
as the path leading to is is different anyway.

Change-Id: I0058d16794a3cd04411640c2c8d5fd4ee8cb997d
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
VPP_STABLE_VER_CENTOS
VPP_STABLE_VER_UBUNTU
VPP_STABLE_VER_UBUNTU_BIONIC
docs/report/vpp_functional_tests/test_environment.rst
docs/report/vpp_performance_tests/test_environment.rst
resources/libraries/python/Constants.py
resources/libraries/python/PapiExecutor.py
resources/libraries/python/VppConfigGenerator.py

index ce8af16..afd61f9 100644 (file)
@@ -1 +1 @@
-19.08-rc0~806_g4f94464~b7558
\ No newline at end of file
+20.01-rc0~3_g6595ff7~b7597
\ No newline at end of file
index 79a2387..9bc13a6 100644 (file)
@@ -1 +1 @@
-19.08-rc0~806-g4f94464~b7752
\ No newline at end of file
+20.01-rc0~3-g6595ff7~b7791
\ No newline at end of file
index d0b3ddd..96f8a22 100644 (file)
@@ -1 +1 @@
-19.08-rc0~806-g4f9446444
\ No newline at end of file
+20.01-rc0~3-g6595ff7f8
\ No newline at end of file
index b8a6b16..31ee0b8 100644 (file)
@@ -403,7 +403,7 @@ There is used the default startup configuration as defined in `VPP startup.conf`
       gid vpp
     }
     socksvr {
-      default
+      socket-name /run/vpp/api.sock
     }
     dpdk
     {
index 48045e9..71db52f 100644 (file)
@@ -61,7 +61,7 @@ below:
       nodaemon
     }
     socksvr {
-      default
+      socket-name /run/vpp/api.sock
     }
     ip6
     {
index d8550ab..0473ca2 100644 (file)
@@ -106,6 +106,9 @@ class Constants(object):
     # Equivalent to ~0 used in vpp code
     BITWISE_NON_ZERO = 0xffffffff
 
+    # Default path to VPP API socket.
+    SOCKSVR_PATH = "/run/vpp/api.sock"
+
     # Mapping from NIC name to its bps limit.
     # TODO: Implement logic to lower limits to TG NIC or software. Or PCI.
     NIC_NAME_TO_LIMIT = {
index 0e94fa6..8e59eff 100644 (file)
@@ -132,7 +132,7 @@ class PapiSocketExecutor(object):
     api_json_directory = None
     crc_checker_instance = None
 
-    def __init__(self, node, remote_vpp_socket="/run/vpp-api.sock"):
+    def __init__(self, node, remote_vpp_socket=Constants.SOCKSVR_PATH):
         """Store the given arguments, declare managed variables.
 
         :param node: Node to connect to and forward unix domain socket from.
index 7ee3e2c..15e8ffb 100644 (file)
@@ -20,6 +20,7 @@ in 7 various places of CSIT code.
 
 import re
 
+from resources.libraries.python.Constants import Constants
 from resources.libraries.python.ssh import exec_cmd_no_error
 from resources.libraries.python.topology import NodeType
 from resources.libraries.python.topology import Topology
@@ -196,10 +197,10 @@ class VppConfigGenerator(object):
         path = ['unix', 'exec']
         self.add_config_item(self._nodeconfig, value, path)
 
-    def add_socksvr(self, socket="default"):
+    def add_socksvr(self, socket=Constants.SOCKSVR_PATH):
         """Add socksvr configuration."""
-        path = ['socksvr', socket]
-        self.add_config_item(self._nodeconfig, '', path)
+        path = ['socksvr', 'socket-name']
+        self.add_config_item(self._nodeconfig, socket, path)
 
     def add_api_segment_gid(self, value='vpp'):
         """Add API-SEGMENT gid configuration.