"""Store the given arguments, declare managed variables.
:param node: Node to connect to and forward unix domain socket from.
"""Store the given arguments, declare managed variables.
:param node: Node to connect to and forward unix domain socket from.
"""Return the cached instance or create new one from directory.
It is assumed self.api_json_directory is set, as a class variable.
"""Return the cached instance or create new one from directory.
It is assumed self.api_json_directory is set, as a class variable.
cls.api_json_directory = tmp_dir + "/usr/share/vpp/api"
# Perform initial checks before .api.json files are gone,
# by accessing the property (which also creates its instance).
cls.api_json_directory = tmp_dir + "/usr/share/vpp/api"
# Perform initial checks before .api.json files are gone,
# by accessing the property (which also creates its instance).
# When present locally, we finally can find the installation path.
package_path = glob.glob(tmp_dir + installed_papi_glob)[0]
# Package path has to be one level above the vpp_papi directory.
# When present locally, we finally can find the installation path.
package_path = glob.glob(tmp_dir + installed_papi_glob)[0]
# Package path has to be one level above the vpp_papi directory.
def add(self, csit_papi_command, history=True, **kwargs):
"""Add next command to internal command list; return self.
def add(self, csit_papi_command, history=True, **kwargs):
"""Add next command to internal command list; return self.
Any pending conflicts from .api.json processing are raised.
Then the command name is checked for known CRCs.
Any pending conflicts from .api.json processing are raised.
Then the command name is checked for known CRCs.
if history:
PapiHistory.add_to_papi_history(
self._node, csit_papi_command, **kwargs)
if history:
PapiHistory.add_to_papi_history(
self._node, csit_papi_command, **kwargs)
dict_item = dictize(item)
if "retval" in dict_item.keys():
# *_details messages do not contain retval.
dict_item = dictize(item)
if "retval" in dict_item.keys():
# *_details messages do not contain retval.
:param csit_papi_command: VPP API command.
:param history: Enable/disable adding command to PAPI command history.
:param csit_papi_command: VPP API command.
:param history: Enable/disable adding command to PAPI command history.
if history:
PapiHistory.add_to_papi_history(
self._node, csit_papi_command, **kwargs)
if history:
PapiHistory.add_to_papi_history(
self._node, csit_papi_command, **kwargs)