You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toolchain automatically generates different model documentations in doc/ (txt tree, html tree, uml). It also generates the Python model (ietf_ped_model.py) and finally it checks the example PEDs (*.yaml) against this model by loading them into the model.
Requirements:
pip install pyang pyangbind
pyang also needs to be install system wide to have correct paths to schema artefacts in system dirs
Call:
# validate model, build model, and test examples
make
# single targets
make validate # validate the model against ietf rules
make build # generate the python code model
make test# test the example PED files against model
TODOs Toolchain
setup tooling (editor, pyang generation, documentation in README)
Use a YANG model to have a clear schema for the PED files. This can also serve as input to IETF work.
Developments: https://github.com/mpeuster/tng-sdk-benchmark/blob/feature-73/models/
YANG background
Examples
Tooling
Custom toolchain called from
Makefile
.The toolchain automatically generates different model documentations in
doc/
(txt tree, html tree, uml). It also generates the Python model (ietf_ped_model.py
) and finally it checks the example PEDs (*.yaml
) against this model by loading them into the model.Requirements:
pip install pyang pyangbind
pyang
also needs to be install system wide to have correct paths to schema artefacts in system dirsCall:
TODOs Toolchain
models
folder in repomandatory
fields are not mandatory in validation (ignore this for now)TODOs Model
string
types. Seepattern
keyword.TODO Implementation
Goal
Replace all legacy interactions with the PED model inside tng-sdk-bench with a
pyang
/pybind
based solution using generated Python code.The text was updated successfully, but these errors were encountered: