YANG, as the defacto modelling language used in the networking domain, plays a critical role in the model-driven automation.
Yet, network automation community suffers from a lack of high quality tools around YANG ecosystem. Starting from the documentation tools to the code generation and SDKs.
When tools fail to deliver, engineers play the favourite screen scraping card to have a go at network automation, effectively discarding the benefits of the model-driven approach.
This repository accompanies a video demonstration that shows how full model-driven, declarative network automation can be achieved without YANG. By using Nokia EDA platform and its OpenAPI-based APIs we generate the pydantic models from the OpenAPI specs and use them to define network resources using native language constructs.
-
Clone the repo and use
uv
to install the project and dependencies:git clone https://github.com/eda-labs/openapi-example-python.git cd openapi-example-python uv sync
-
Run the example:
python main.py