gRPC Operations
You can issue the following gRPC operations:
gRPC Operation |
Description |
---|---|
GetConfig |
Retrieves a configuration |
GetModels |
Gets the supported Yang models on the router |
MergeConfig |
Appends to an existing configuration |
DeleteConfig |
Deletes a configuration |
ReplaceConfig |
Modifies a part of an existing configuration |
CommitReplace |
Replaces existing configuration with the new configuration file provided |
GetOper |
Gets operational data using JSON |
CliConfig |
Invokes the CLI configuration |
ShowCmdTextOutput |
Displays the output of show command |
ShowCmdJSONOutput |
Displays the JSON output of show command |
ActionJSON |
Displays the gRPC JSON action |
gRPC Operation to Get Configuration
This example shows how a gRPC GetConfig request works for CDP feature.
The client initiates a message to get the current configuration of CDP running on the router. The router responds with the current CDP configuration.
gRPC Request (Client to Router) |
gRPC Response (Router to Client) |
---|---|
|
|