Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
180402d
)
vpp_papi: remove legacy way of calling VPP APIs
23/10623/2
author
Klement Sekera
<ksekera@cisco.com>
Sat, 17 Feb 2018 10:10:30 +0000
(11:10 +0100)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Sat, 17 Feb 2018 20:42:49 +0000
(20:42 +0000)
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 <ksekera@cisco.com>
src/vpp-api/python/vpp_papi.py
patch
|
blob
|
history
diff --git
a/src/vpp-api/python/vpp_papi.py
b/src/vpp-api/python/vpp_papi.py
index
25a8369
..
c2d12b5
100644
(file)
--- 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)