Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an ability to explore current configuration #34

Open
3Hren opened this issue Mar 3, 2025 · 0 comments
Open

Add an ability to explore current configuration #34

3Hren opened this issue Mar 3, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@3Hren
Copy link
Member

3Hren commented Mar 3, 2025

Motivation

Currently there is no way to explore current configuration. Imagine a subject that tries to figure out what kind of YANET is configured on a machine:

  • How many modules there are. Which kinds of them?
  • Which pipelines are currently active with their configuration?

Something like:

> yanet-cli info
Modules:
- route (idx=0)
- forward (idx=1)
- balancer (idx=2).

Pipelines:
  name: pipeline0
  modules:
  - name: forward-from-kernel
    type: forward
  - name: route0
    type: route
  - name: forward-to-kernel
    type: forward

It allows to explore the system and acts as an entry point for further exploration (this is just an example).

> yanet-cli route show
"2a02:6b8::/32":
   source_mac: 52:54:00:12:34:56
   destination: mac: 52:54:00:12:34:ff
"::/0":
   source_mac: 12:34:3a:f4:6e:c2
   destination: mac: 52:54:00:12:34:ff  

However, there is no API to obtain the initial information.

What we need to do?

Implement such API.

@3Hren 3Hren added the enhancement New feature or request label Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants