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
+194-1Lines changed: 194 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,16 @@ 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
12
```
12
13
13
-
This library covers the gNMI defined `capabilities`, `get`, `set`, and `subscribe` RPCs, and helper clients provide OS-specific recommendations. As commonalities and differences are identified 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 is also available. As commonalities and differences are identified between OS functionality this library will be refactored as necessary.
14
15
15
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.
16
17
18
+
### gnmcli
19
+
Since `v1.0.5` a gNMI CLI is available when this module is installed. `Capabilities`, `Subscribe`, `Get`, and rudimentary `Set` 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).
20
+
17
21
### ClientBuilder
18
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:
19
23
@@ -181,6 +185,195 @@ If a new `gnmi.proto` definition is released, use `update_protos.sh` to recompil
181
185
./update_protos.sh
182
186
```
183
187
188
+
### gnmicli Usage
189
+
The below details the current `gnmcli` usage options.
0 commit comments