Closed arnaudcoquelet closed 6 months ago
It's not currently possible. The gNMI proxy function was added to allow multiple clients to subscribe to the same data without duplicating subscriptions to the target. Proxying Get/Set was added later on.
There was some discussions about adding that functionality as a separate command (gnmic proxy
) but it was never implemented.
Is this something you would be interested on ?
It would be a nice to have feature on my end
That would allow to solve 2 situations: -When the client is not able to reach directly the gnmi server -When the client use an API that is not fully capable to interop with a server (in my case, pygnmi and gnnmi servers with a certificate without subject/subject alternative name)
This took a bit of time but you can now(v0.37.0) use the proxy
command. gNMIc will run as a proxy without the need to define subscriptions.
Thanks a lot Karim to implement itArnaud CoqueletNokiaSent from my iPhoneOn May 13, 2024, at 19:56, Karim Radhouani @.***> wrote: This took a bit of time but you can now(v0.37.0) use the proxy command. gNMIc will run as a proxy without the need to define subscriptions.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
I'm new to gnmic, so maybe I'm missing something, But I'm curious if there is a way to start gnmic as a gnmi-server so it behaves as a proxy for SET/GET operations, but without defining a subscription.
Right now the only I get it to work is if I define a subscription and start it like this "gnmic --config config.yml subscribe"
Here is how the config.yml is built:
If the subscriptions is not defined, the application stops as expected because gnmic was started with the keyword subscribe.