Containerlab

The purpose of this deployment is to collect gNMI data and write it to a NATS server.

Multiple 3rd Party systems (acting as a NATS clients) can then read the data from the NATS server for further processing.

This deployment example includes a single gnmic instance and a single NATS output

Deployment files:

The deployed SR Linux nodes are discovered using Docker API and are loaded as gNMI targets. Edit the subscriptions section if needed.

Deploy it with:

git clone https://github.com/openconfig/gnmic.git
cd gnmic/examples/deployments/1.single-instance/1.nats-output/containerlab
sudo clab deploy -t nats.clab.yaml
+---+-------------------+--------------+------------------------------+-------+-------+---------+----------------+----------------------+
| # |       Name        | Container ID |            Image             | Kind  | Group |  State  |  IPv4 Address  |     IPv6 Address     |
+---+-------------------+--------------+------------------------------+-------+-------+---------+----------------+----------------------+
| 1 | clab-lab11-gnmic  | 955eaa35b730 | ghcr.io/openconfig/gnmic:latest | linux |       | running | 172.20.20.3/24 | 2001:172:20:20::3/64 |
| 2 | clab-lab11-leaf1  | f0f61a79124e | ghcr.io/nokia/srlinux        | srl   |       | running | 172.20.20.4/24 | 2001:172:20:20::4/64 |
| 3 | clab-lab11-leaf2  | de714ee79856 | ghcr.io/nokia/srlinux        | srl   |       | running | 172.20.20.9/24 | 2001:172:20:20::9/64 |
| 4 | clab-lab11-leaf3  | c674b7bbb898 | ghcr.io/nokia/srlinux        | srl   |       | running | 172.20.20.8/24 | 2001:172:20:20::8/64 |
| 5 | clab-lab11-leaf4  | c37033f30e99 | ghcr.io/nokia/srlinux        | srl   |       | running | 172.20.20.7/24 | 2001:172:20:20::7/64 |
| 6 | clab-lab11-nats   | ebbd346d2aee | nats:latest                  | linux |       | running | 172.20.20.2/24 | 2001:172:20:20::2/64 |
| 7 | clab-lab11-spine1 | 0fe91271bdfe | ghcr.io/nokia/srlinux        | srl   |       | running | 172.20.20.6/24 | 2001:172:20:20::6/64 |
| 8 | clab-lab11-spine2 | 6b05f4e42cc4 | ghcr.io/nokia/srlinux        | srl   |       | running | 172.20.20.5/24 | 2001:172:20:20::5/64 |
+---+-------------------+--------------+------------------------------+-------+-------+---------+----------------+----------------------+

Check the NATS Output documentation page for more configuration options.