Mike Hansen 29e3068c0e Add VyOS operational show command support to HTTPS API
This adds support for VyOS operational mode commands to the HTTPS API,
enabling state collection capabilities in olg-ucentral-schema.

Changes:
  - Add /show endpoint for operational mode commands (show system uptime,
    show interfaces, show dhcp server leases, etc.)
  - Fix form data encoding: change --form-string to --form for proper
    multipart/form-data submission to VyOS API

API now supports:
  - load/merge (config-file endpoint) - for applying configurations
  - showConfig (retrieve endpoint) - for reading configurations
  - show (show endpoint) - NEW for operational commands

The /show endpoint will be used by state.uc in olg-ucentral-schema to
query VyOS operational state for cloud reporting.

Tested on VyOS 2025.12.13-0020-rolling with OLG hardware.

Signed-off-by: Mike Hansen <mike.hansen@netexperience.com>
2026-03-05 14:38:18 -05:00
2025-12-05 07:39:56 -05:00

OLG Ucentral Client SDK

This is a sdk to build ucentral client image to support olg schema and configure VYOS. It can be used to validate OLG's end-to-end working, from accepting configuration from the Cloud controller to configuring VyOS.

  • vyos/config_prepare.uc: Conversion from templates to VyOS text style configuration.
  • vyos/https_server_api.uc: This will call VyOS retrieve and load APIs.
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-03-20T04:38:52.947Z
Readme BSD-3-Clause 861 KiB
Latest
2026-03-13 15:23:54 +00:00
Languages
Shell 100%