gRPC operations
gRPC operations are a set of remote procedure calls that enable clients to interact with Cisco IOS XR devices for configuration and operational data retrieval.
-
They support configuration retrieval and modification.
-
They provide access to operational and model data.
-
They allow CLI-based and structured output retrieval.
These operations are essential for automating and managing network devices programmatically using gRPC clients.
Manageability service gRPC operations
This table defines the manageability service gRPC operations for Cisco IOS XR.
|
gRPC Operation |
Description |
|---|---|
|
GetConfig |
Retrieves the configuration from the router. |
|
GetModels |
Gets the supported Yang models on the router |
|
MergeConfig |
Merges the input config with the existing device configuration. |
|
DeleteConfig |
Deletes one or more subtrees or leaves of configuration. |
|
ReplaceConfig |
Replaces part of the existing configuration with the input configuration. |
|
CommitReplace |
Replaces all existing configuration with the new configuration provided. |
|
GetOper |
Retrieves operational data. |
|
CliConfig |
Invokes the input CLI configuration. |
|
ShowCmdTextOutput |
Returns the output of a show command in the text form |
|
ShowCmdJSONOutput |
Returns the output of a show command in JSON form. |
gRPC operation to Get configuration
The gRPC example shows how a gRPC GetConfig request works for feature.
The client initiates a message to get the current configuration of running on the router. The router responds with the current configuration.
|
gRPC request (Client to Router) |
gRPC response (Router to Client) |
|---|---|
|
|
Feedback