From cca05a55f3434d8a031b98f4a496adb8df20c122 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Mon, 29 Nov 2021 16:17:15 +0100 Subject: Tox: Add checker for CSIT model version + Implementation stub so checker can check already. + Also add documentation stub for the implemented model. + Checker checks also for bumps in documentation version. - Not comparing implementation and documentation version yet. Change-Id: I4d19c00315a1c171de325c4494c28f5210635f32 Signed-off-by: Vratko Polak --- resources/libraries/python/Constants.py | 3 +++ resources/libraries/python/model/__init__.py | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 resources/libraries/python/model/__init__.py (limited to 'resources/libraries/python') diff --git a/resources/libraries/python/Constants.py b/resources/libraries/python/Constants.py index c14ba31c57..f44c6ad95a 100644 --- a/resources/libraries/python/Constants.py +++ b/resources/libraries/python/Constants.py @@ -119,6 +119,9 @@ def get_optimistic_bool_from_env(env_var_names): class Constants: """Constants used in CSIT.""" + # Version for CSIT data model. See docs/model/. + MODEL_VERSION = u"0.1.0" + # OpenVPP testing directory location at topology nodes REMOTE_FW_DIR = u"/tmp/openvpp-testing" diff --git a/resources/libraries/python/model/__init__.py b/resources/libraries/python/model/__init__.py new file mode 100644 index 0000000000..36e32b89c4 --- /dev/null +++ b/resources/libraries/python/model/__init__.py @@ -0,0 +1,16 @@ +# Copyright (c) 2021 Cisco and/or its affiliates. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +""" +__init__ file for directory resources/libraries/python/model +""" -- cgit 1.2.3-korg