Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identification of the stream when consuming via gNMI Subscribe #591

Open
roshan-joyce-fujitsu opened this issue Jul 5, 2024 · 0 comments

Comments

@roshan-joyce-fujitsu
Copy link

roshan-joyce-fujitsu commented Jul 5, 2024

TR548 defines 3 connection-protocols for streams: SSE, web-socket, and gNMI.
And TAPI server advertises available streams in the list /tapi-common:context/stream-context/available-stream.
Each stream object has a uuid, stream-id, and a name.
Each stream object also has a connection-address.

In the case of a stream supporting SSE or web-socket connection-protocol, the connection-address will be a URL and the URL can have one component that identifies the specific stream.

In the case of a stream supporting gNMI, I would imagine the connection-address to be a URL like grpc://<host-fqdn>:<port>.
On this grpc connection, the Subscribe() RPC defined in gnmi.proto will need to be invoked. The explanation on forming the SubscribeRequest does not explain how the client can identify the particular steam it wants to subscribe to. See section 6.3.3.
This will not be a problem if the server is supporting only one stream per grpc port. However, I think it is better to use prefix/target or subscription/path to identify the stream by its uuid or stream-id.

CC: @nigel-r-davis @amazzini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant