GoVPP CLI Proposal #100
Pinned
ondrej-fabry
announced in
Design
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Intro
The GoVPP CLI is an application to be used for any interaction with VPP API. It can consume VPP API files statically to parse then, build schema from it and then do additional processing of the data. And also, it can call the VPP API services in a running VPP instance for various purposes, such as sending VPP API requests from bash scripts, testing API handlers, measuring performance, running a proxy.. etc.
Features
Here's brief summary of features the GoVPP CLI would provide:
Demonstration
Below are few usage examples demonstrating the some of the GoVPP CLI commands.
List VPP API
List all VPP API files in a schema as a table including brief summary about their contents:
govpp vppapi
Print VPP API file(s) in JSON
Print the definition VPP API file(s) using JSON format:
govpp vppapi -json
Send CLI command via VPP API
Send CLI command to VPP via VPP API (using
vlib.CliInband
):govpp cli "show version"
# show version vpp v22.10-rc1~1-g569763f94~b3 built by root on ac322d2c016f at 2022-09-27T14:23:54
Beta Was this translation helpful? Give feedback.
All reactions