summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOle Tr�an <otroan@employees.org>2020-12-15 15:11:21 +0000
committerOle Tr�an <otroan@employees.org>2020-12-15 16:04:03 +0000
commit58a6e7725212188dc993c2d6ac9fb149f33ed0db (patch)
treeeaac10586c4bdfdcdcea5f366de24c9ae0ac5183 /src
parent3dcf795cf07885285124eed88fb44fc7d70a28c6 (diff)
api: crchcecker ignore version < 1.0.0 and outside of src directory
This reverts commit 510aaa8911843206f7b9ff48b41e3c7b8c4a99fe. Reason for revert: failed in case of no api file in changeset. Change-Id: I2c6f01b25a35128df870418eef0008766bb590df Type: fix Signed-off-by: Ole Troan <ot@cisco.com>
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, 0 insertions, 4 deletions
diff --git a/src/tools/vppapigen/vppapigen_crc.py b/src/tools/vppapigen/vppapigen_crc.py
index 791e347292e..6947f12d467 100644
--- a/src/tools/vppapigen/vppapigen_crc.py
+++ b/src/tools/vppapigen/vppapigen_crc.py
@@ -10,12 +10,9 @@ 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 20b483aa1db..6a2c94d182e 100644
--- a/src/vat2/test/vat2_test.api
+++ b/src/vat2/test/vat2_test.api
@@ -13,7 +13,6 @@
* limitations under the License.
*/
-option version="0.0.0";
import "vnet/ip/ip_types.api";
autoreply define test_prefix {