X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVppConfigGenerator.py;fp=resources%2Flibraries%2Fpython%2FVppConfigGenerator.py;h=15e8ffb3b54e528c343e7a85f1884395ffc032aa;hp=7ee3e2ceb05aa1d82dcb6fd7f1dc2dcb55a1c73e;hb=a4c6a63b84f537b3ae660eab7d2a96ffb7740514;hpb=181e882d5c939cc6620545e5fde411e46fd59559 diff --git a/resources/libraries/python/VppConfigGenerator.py b/resources/libraries/python/VppConfigGenerator.py index 7ee3e2ceb0..15e8ffb3b5 100644 --- a/resources/libraries/python/VppConfigGenerator.py +++ b/resources/libraries/python/VppConfigGenerator.py @@ -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.