-
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
Clarify wording on SUBSCRIBE/GET to a non-existent path. #144
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -917,7 +917,9 @@ The `GetResponse` message consists of: | |
and hence MUST NOT collapse data from multiple paths into a single | ||
`Notification` within the response. The `timestamp` field of the | ||
`Notification` message MUST be set to the time at which the target's | ||
snapshot of the relevant path was taken. | ||
snapshot of the relevant path was taken. If the path is syntactically valid | ||
but does not (yet) exist, then the `update` field of the `Notification` MUST | ||
be empty. | ||
* `extension` - a repeated field used to carry gNMI extensions, as per the | ||
description in [Section 2.7](#27-extensions-to-gnmi). | ||
|
||
|
@@ -1400,8 +1402,10 @@ the current data tree on the server. While the path within the subscription | |
SHOULD be a valid path within the set of schema modules that the target | ||
supports, subscribing to any syntactically valid path within such modules MUST | ||
be allowed. In the case that a particular path does not (yet) exist, the target | ||
MUST NOT close the RPC, and instead should continue to monitor for the existence | ||
of the path, and transmit telemetry updates should it exist in the future. | ||
would send a `sync_response` as the very first message to indicate this, and in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still don't like this wording. I suggest:
Thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like it. One question on a previous sentence:
So, if the path is not schema-compliant, it should return Should we document this as well? |
||
the case of `STREAM` subscriptions, MUST NOT close the RPC, and instead should | ||
continue to monitor for the existence of the path, and transmit telemetry | ||
updates should it exist in the future. | ||
|
||
<!-- TODO(robjs): Need a way to be able to send this information. Previously | ||
said: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here the target should respond with an error using the
NotFound
status code. This seems (to me) to be the most explicit thing to do when a client is explicitly asking for a very particular path.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this deviate from Subscribe where no error is produced?