summaryrefslogtreecommitdiffstats
path: root/src/tools/vppapigen/vppapigen_json.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-02-26 18:03:16 +0100
committerOle Troan <ot@cisco.com>2019-02-26 18:03:45 +0100
commitca80dccb1e91bf83a133bd91d9ff1693840e95c6 (patch)
tree83b43620cc7d64480f8a9d43a01ac50401a65186 /src/tools/vppapigen/vppapigen_json.py
parent70c35f302800d8d5e1ef376c4b0ad547b1977556 (diff)
vppapigen: Expose "option version" in generated JSON file.
Change-Id: Iaa78ee181589584885b0f377eafb89e603718bd4 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/tools/vppapigen/vppapigen_json.py')
-rw-r--r--src/tools/vppapigen/vppapigen_json.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/vppapigen/vppapigen_json.py b/src/tools/vppapigen/vppapigen_json.py
index a4707c0cd60..c563a089949 100644
--- a/src/tools/vppapigen/vppapigen_json.py
+++ b/src/tools/vppapigen/vppapigen_json.py
@@ -64,6 +64,7 @@ def run(filename, s, file_crc):
j['unions'] = walk_defs([o for o in s['types'] if o.__class__.__name__ == 'Union'])
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['vl_api_version'] = hex(file_crc)
return json.dumps(j, indent=4, separators=(',', ': '))