aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-07-06 11:07:21 +0200
committerNeale Ranns <nranns@cisco.com>2018-07-18 08:30:47 +0000
commit8aedf5e2875ba31de1d33982783ca3ae687de9dc (patch)
treea9f30e224a7eb9117fa2705711d9c28b7842c72a /src
parent54d0ac39f70b267f86e30c84d0e5b0c41773d1c4 (diff)
vpp-api: improve naming for easier debugging
Change-Id: I487ccf2adabfbd22dac9f492ecff679d38046724 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_papi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py
index edc0c6ab364..afaad484f8d 100644
--- a/src/vpp-api/python/vpp_papi/vpp_papi.py
+++ b/src/vpp-api/python/vpp_papi/vpp_papi.py
@@ -93,7 +93,7 @@ def vac_error_handler(arg, msg, msg_len):
vpp_object.logger.warning("VPP API client:: %s", ffi.string(msg, msg_len))
-class Empty(object):
+class VppApiDynamicMethodHolder(object):
pass
@@ -405,7 +405,7 @@ class VPP():
def _register_functions(self, async=False):
self.id_names = [None] * (self.vpp_dictionary_maxid + 1)
self.id_msgdef = [None] * (self.vpp_dictionary_maxid + 1)
- self._api = Empty()
+ self._api = VppApiDynamicMethodHolder()
for name, msg in vpp_iterator(self.messages):
n = name + '_' + msg.crc[2:]
i = vpp_api.vac_get_msg_index(n.encode())