Skip to content

eda-labs/openapi-example-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full model driven, declarative network management without YANG

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.

video

Get started

  1. Install EDA

  2. 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
  3. Run the example:

    python main.py