vppapigen: require reply/details messages for requests/dumps
Throw exception if details/reply is not defined instead
of logger warning.
@@ -608,7 +608,7 @@ class VPPAPI(object):
if d[:-6] in svcs:
continue
if d[:-6] not in msgs:
- self.logger.warning('{} missing calling message'
+ raise ValueError('{} missing calling message'
.format(d))
continue
if d.endswith('_dump'):
@@ -618,13 +618,13 @@ class VPPAPI(object):
s['services'].append(Service(d, d[:-5]+'_details',
stream=True))
else:
- self.logger.error('{} missing details message'
+ raise ValueError('{} missing details message'
.format(d))
continue
if d.endswith('_details'):
if d[:-8]+'_dump' not in msgs:
- self.logger.error('{} missing dump message'
+ raise ValueError('{} missing dump message'
.format(d))
continue
