-
Notifications
You must be signed in to change notification settings - Fork 89
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
Question: SubscriptionList/Subscribe in line with GetRequest #181
Comments
Subscribe has an @robshakir Any previous discussions to introduce enum DataType {
ALL = 0; // All data elements.
CONFIG = 1; // Config (rw) only elements.
STATE = 2; // State (ro) only elements.
// Data elements marked in the schema as operational. This refers to data
// elements whose value relates to the state of processes or interactions
// running on the device.
OPERATIONAL = 3;
} to Subscribe? |
//cc @gcsl There hasn't been such a request that I am aware of. I'm not sure that I am supportive of adding this. The reason that we added this in a With
|
@robshakir We had the same request raised internally many times, the prime use case was with Network Management Systems being in need of subscribing only to config leaves to track configuration drift. I share the sentiment of having this is a registered extension, if not being part of the spec. |
Yes, though it's possible to query requisite config/state attributes, it requires to form such paths explicitly and make a Either as the part of spec or as a registered extension, this could be very useful feature to use from NMS' perspective. Additionally, from device standpoint, it will ease the processing if you know a priori the type of data to deal with. However, this need not be the guiding factor. |
In
GetRequest
, the gNMI client has the flexibility to choose the kind of data to be served by target by using different options as described The GetRequest Message section especiallyDataType
andEncoding
options. Likewise, should either ofSubscriptionList
/Subscribe
message too have similar options to choose from? That way, both Get and Subscribe RPCs would be consistent with respect to the options to choose from. Many a times, it will be required by a client to pull only config or state data alone, rather than a combination of both. Without these parameters, the client may need to make multiple Subscribe requests to receive only a certain type of data e.g., config by having it in the path attributes.The text was updated successfully, but these errors were encountered: