From: Klement Sekera Date: Sat, 17 Feb 2018 10:10:30 +0000 (+0100) Subject: vpp_papi: remove legacy way of calling VPP APIs X-Git-Tag: v18.04-rc1~304 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=49bec57f2534a9d8b14e6fc9f9e15427bb42f895 vpp_papi: remove legacy way of calling VPP APIs This allows VPP to define APIs which conflict with internal function names used in vpp_papi without issues. Change-Id: I56c21814e1c11fa2aa6bcd95adb3fdeacd304e8e Signed-off-by: Klement Sekera --- diff --git a/src/vpp-api/python/vpp_papi.py b/src/vpp-api/python/vpp_papi.py index 25a836956e5..c2d12b5b8d5 100644 --- a/src/vpp-api/python/vpp_papi.py +++ b/src/vpp-api/python/vpp_papi.py @@ -611,13 +611,6 @@ class VPP(): multipart = True if name.find('_dump') > 0 else False f = self.make_function(name, i, msgdef, multipart, async) setattr(self._api, name, FuncWrapper(f)) - - # old API stuff starts here - will be removed in 17.07 - if hasattr(self, name): - raise NameError( - 3, "Conflicting name in JSON definition: `%s'" % name) - setattr(self, name, f) - # old API stuff ends here else: self.logger.debug( 'No such message type or failed CRC checksum: %s', n)