Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppapigen: require reply/details messages for requests/dumps
[vpp.git]
/
src
/
tools
/
vppapigen
/
vppapigen.py
diff --git
a/src/tools/vppapigen/vppapigen.py
b/src/tools/vppapigen/vppapigen.py
index
628bb09
..
0779e80
100755
(executable)
--- a/
src/tools/vppapigen/vppapigen.py
+++ b/
src/tools/vppapigen/vppapigen.py
@@
-608,8
+608,8
@@
class VPPAPI(object):
if d[:-6] in svcs:
continue
if d[:-6] not in msgs:
if d[:-6] in svcs:
continue
if d[:-6] not in msgs:
-
self.logger.warning
('{} missing calling message'
-
.format(d))
+
raise ValueError
('{} missing calling message'
+ .format(d))
continue
if d.endswith('_dump'):
if d in svcs:
continue
if d.endswith('_dump'):
if d in svcs:
@@
-618,14
+618,14
@@
class VPPAPI(object):
s['services'].append(Service(d, d[:-5]+'_details',
stream=True))
else:
s['services'].append(Service(d, d[:-5]+'_details',
stream=True))
else:
-
self.logger.e
rror('{} missing details message'
-
.format(d))
+
raise ValueE
rror('{} missing details message'
+ .format(d))
continue
if d.endswith('_details'):
if d[:-8]+'_dump' not in msgs:
continue
if d.endswith('_details'):
if d[:-8]+'_dump' not in msgs:
-
self.logger.e
rror('{} missing dump message'
-
.format(d))
+
raise ValueE
rror('{} missing dump message'
+ .format(d))
continue
if d in svcs:
continue
if d in svcs: