vpp-api: improve naming for easier debugging 69/13369/2
authorKlement Sekera <ksekera@cisco.com>
Fri, 6 Jul 2018 09:07:21 +0000 (11:07 +0200)
committerNeale Ranns <nranns@cisco.com>
Wed, 18 Jul 2018 08:30:47 +0000 (08:30 +0000)
Change-Id: I487ccf2adabfbd22dac9f492ecff679d38046724
Signed-off-by: Klement Sekera <ksekera@cisco.com>
src/vpp-api/python/vpp_papi/vpp_papi.py

index edc0c6a..afaad48 100644 (file)
@@ -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())