summaryrefslogtreecommitdiffstats
path: root/src/tools/vppapigen/vppapigen_json.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-09-11 17:49:08 +0200
committerOle Troan <ot@cisco.com>2019-09-12 13:17:40 +0200
commite6a5712624186d4162cbba8e49ff15362aeda17d (patch)
treeb5ced6fc0c1b5d635ce1cc6780d570ec91daa77c /src/tools/vppapigen/vppapigen_json.py
parent4b943d632864949310da4c88ea00e59f6043ae40 (diff)
api: split vl_api_prefix into two
One type for address with prefix and one type for prefix. Ticket: VPP-1769 Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Icfec51d9b7d5cde1d69fbecdd97498688ab7b295 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/tools/vppapigen/vppapigen_json.py')
-rw-r--r--src/tools/vppapigen/vppapigen_json.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/vppapigen/vppapigen_json.py b/src/tools/vppapigen/vppapigen_json.py
index 124c0d3a0bd..95f9e5e63ce 100644
--- a/src/tools/vppapigen/vppapigen_json.py
+++ b/src/tools/vppapigen/vppapigen_json.py
@@ -55,7 +55,6 @@ def walk_defs(s, is_message = False):
r.append(d)
return r
-
#
# Plugin entry point
#
@@ -68,6 +67,6 @@ def run(filename, s):
j['enums'] = walk_enums([o for o in s['types'] if o.__class__.__name__ == 'Enum'])
j['services'] = walk_services(s['Service'])
j['options'] = s['Option']
- j['aliases'] = s['Alias']
+ j['aliases'] = {o.name:o.alias for o in s['types'] if o.__class__.__name__ == 'Using'}
j['vl_api_version'] = hex(s['file_crc'])
return json.dumps(j, indent=4, separators=(',', ': '))