You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -8,15 +8,15 @@ This library wraps gNMI functionality to ease usage with Cisco implementations i
8
8
```bash
9
9
pip install cisco-gnmi
10
10
python -c "import cisco_gnmi; print(cisco_gnmi)"
11
-
gnmcli --help
11
+
cisco-gnmi --help
12
12
```
13
13
14
-
This library covers the gNMI defined `Capabilities`, `Get`, `Set`, and `Subscribe` RPCs, and helper clients provide OS-specific recommendations. A CLI is also available. As commonalities and differences are identified between OS functionality this library will be refactored as necessary.
14
+
This library covers the gNMI defined `Capabilities`, `Get`, `Set`, and `Subscribe` RPCs, and helper clients provide OS-specific recommendations. A CLI (`cisco-gnmi`) is also available upon installation. As commonalities and differences are identified between OS functionality this library will be refactored as necessary.
15
15
16
16
It is *highly* recommended that users of the library learn [Google Protocol Buffers](https://developers.google.com/protocol-buffers/) syntax to significantly ease usage. Understanding how to read Protocol Buffers, and reference [`gnmi.proto`](https://github.com/openconfig/gnmi/blob/master/proto/gnmi/gnmi.proto), will be immensely useful for utilizing gNMI and any other gRPC interface.
17
17
18
-
### gnmcli
19
-
Since `v1.0.5` a gNMI CLI is available when this module is installed. `Capabilities`, `Get`, rudimentary `Set`, and `Subscribe` are supported. The CLI may be useful for simply interacting with a Cisco gNMI service, and also serves as a reference for how to use this `cisco_gnmi` library. CLI usage is documented at the bottom of this README in [gnmcli Usage](#gnmcli-usage).
18
+
### cisco-gnmi CLI
19
+
Since `v1.0.5` a gNMI CLI is available as `cisco-gnmi`when this module is installed. `Capabilities`, `Get`, rudimentary `Set`, and `Subscribe` are supported. The CLI may be useful for simply interacting with a Cisco gNMI service, and also serves as a reference for how to use this `cisco_gnmi` library. CLI usage is documented at the bottom of this README in [CLI Usage](#cli-usage).
20
20
21
21
### ClientBuilder
22
22
Since `v1.0.0` a builder pattern is available with `ClientBuilder`. `ClientBuilder` provides several `set_*` methods which define the intended `Client` connectivity and a `construct` method to construct and return the desired `Client`. There are several major methods involved here:
@@ -185,24 +185,24 @@ If a new `gnmi.proto` definition is released, use `update_protos.sh` to recompil
185
185
./update_protos.sh
186
186
```
187
187
188
-
### gnmcli Usage
189
-
The below details the current `gnmcli` usage options. Please note that `Set` operations may be destructive to operations and should be tested in lab conditions.
188
+
### CLI Usage
189
+
The below details the current `cisco-gnmi` usage options. Please note that `Set` operations may be destructive to operations and should be tested in lab conditions.
190
190
191
191
```
192
-
gnmcli --help
192
+
cisco-gnmi --help
193
193
usage:
194
-
gnmcli <rpc> [<args>]
194
+
cisco-gnmi <rpc> [<args>]
195
195
196
196
Supported RPCs:
197
197
capabilities
198
198
subscribe
199
199
get
200
200
set
201
201
202
-
gnmcli capabilities 127.0.0.1:57500
203
-
gnmcli get 127.0.0.1:57500
204
-
gnmcli set 127.0.0.1:57500 -delete_xpath Cisco-IOS-XR-shellutil-cfg:host-names/host-name
This command will output the `SubscribeResponse` to `stdout` or `-dump_file`. `-xpath` may be specified multiple times to specify multiple `Path`s for the `GetRequest`. Subscribe currently only supports a sampled stream. `ON_CHANGE` is possible but not implemented in the CLI, yet. :)
0 commit comments