aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/vppapigen/vppapigen_crc.py3
-rw-r--r--src/vat2/test/vat2_test.api1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/vppapigen/vppapigen_crc.py b/src/tools/vppapigen/vppapigen_crc.py
index 6947f12d467..791e347292e 100644
--- a/src/tools/vppapigen/vppapigen_crc.py
+++ b/src/tools/vppapigen/vppapigen_crc.py
@@ -10,9 +10,12 @@ process_imports = True
def run(args, input_filename, s):
j = {}
major = 0
+ minor = 0
+ patch = 0
if 'version' in s['Option']:
v = s['Option']['version']
(major, minor, patch) = v.split('.')
+ j['_version'] = {'major': major, 'minor': minor, 'patch': patch}
for t in s['Define']:
j[t.name] = {'crc': f'{t.crc:#08x}', 'version': major,
'options': t.options}
diff --git a/src/vat2/test/vat2_test.api b/src/vat2/test/vat2_test.api
index 6a2c94d182e..20b483aa1db 100644
--- a/src/vat2/test/vat2_test.api
+++ b/src/vat2/test/vat2_test.api
@@ -13,6 +13,7 @@
* limitations under the License.
*/
+option version="0.0.0";
import "vnet/ip/ip_types.api";
autoreply define test_prefix {