This is a client for the OpenConfig gRPC interface that publishes data to
Redis. Values are stored in JSON. Every update is pushed to Redis twice:
as a hash map update,
where the path in Redis is the path to the entity or collection (aka
container or list, in YANG speak) and the keys of the hash are the
attributes (leaf names, in YANG speak).
as a PUBLISH command sent onto
the path to the entity or collection, so that consumers can receive
updates in a streaming fashion from Redis.
Usage
See the -help output, but here's an example to push all the temperature
sensors into Redis. You can also not pass any -subscribe flag to push
everything into Redis.
The ocredis tool is a client for the OpenConfig gRPC interface that
subscribes to state and pushes it to Redis, using Redis' support for hash
maps and for publishing events that can be subscribed to.