-
Notifications
You must be signed in to change notification settings - Fork 198
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
Undocumented use of gNMI Notification field atomic
#180
Comments
A schema-unaware collector that receives an update with This is implemented in the collector in |
The annotation that is used in OpenConfig models is
|
sorry yes - typed one thing... meant the other |
Would you then agree this goes into bucket (1) above where this is directly correlated to the annotation in the YANG model case (and up to however anyone wishes outside of those bounds)? e.g.
The collector need not know the YANG model contents but the producer is merely reflecting the intent If so, I can draft up a PR to tighten this up in the spec + proto IDL |
I'm not entirely sure I understand. Technically, with |
You got it... For where YANG is used to describe the data content and in the case of OpenConfig modeling, we have a direct correlation to the If native modeling in an implementation chooses to drive similar behavior, this can be purely internal (less desirable) or driven by way of a schema marking/annotation (more desirable to have a more definite contract) If you agree - I think some mention of this behavior/expectation is warranted in the gNMI spec (which does not contain anything towards the usage of this field today) and likely comment rewording in the proto IDL |
Makes sense -- happy to have this clarification. Randomly using |
A gNMI
Notification
message contains a boolean field namedatomic
per:https://github.com/openconfig/gnmi/blob/master/proto/gnmi/gnmi.proto#L89-L91
However the comments above are where this definition ends and is left to interpretation. The gNMI specification does not carry any additional definition or desired usage.
Now this could be interpreted a few ways it seems:
true
for any YANG model structure that carries theoc-ext:telemetry-atomic
annotation essentially just reflecting a boolean signal according to the data contenttrue
per the comment when aprefix
is carried in theNotification
message indicating that allUpdate
messages as part of theNotification
"conform" to the prefix concatenationThe latter is completely unnecessary as the existence of a
prefix
is enough to know that all subsequentUpdate
messages packed into thatNotification
are part of the sameprefix
The prior means that there is a direct correspondence to the data-model annotation.
Is this value necessary? How is it intended to be used or of value to a consumer?
Thx
The text was updated successfully, but these errors were encountered: