Skip to content

Update JSON_ETF encoding rules in gnmi specification#238

Open
dplore wants to merge 1 commit intomasterfrom
dplore/json_ietf_namespace_encoding
Open

Update JSON_ETF encoding rules in gnmi specification#238
dplore wants to merge 1 commit intomasterfrom
dplore/json_ietf_namespace_encoding

Conversation

@dplore
Copy link
Member

@dplore dplore commented Mar 5, 2026

Added emphasis that JSON_IETF must use namespace qualified names where required as we observe a variety of implementations do not strictly adhere to section 4 of RFC7951.

Added emphasis that JSON_IETF must use namespace qualified names where required as we observe a variety of implementations do not strictly adhere to section 4 of RFC7951.
@dplore dplore moved this to Ready to discuss in OC Operator Review Mar 5, 2026
encodings.
encodings. Also note, data must be encoded using namespace
qualified names where required per
[RFC7951 Section 4]([https://tools.ietf.org/html/rfc7951](https://datatracker.ietf.org/doc/html/rfc7951#section-6.8)).
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree but my only comment would be - is this necessary?

The encoding is JSON_IETF and that encoding should just dictate conformance to RFC7951. Is there any case where RFC compliance should be diverged here?

It's been a while since I read this entire section (will go back and read) but if it isn't already we should cover what the expectation is for prefix encoding as well w/ this value encoding when it comes to RFC7951 compliance

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, this reminder in the doc should not be necessary since RFC7951 requires it and OC requires RFC7951. But it's observed there is not compliance with this, even within OpenConfig's own published tools. Given the miss, a little redundancy in the docs seems warranted.

FWIW, I did some searching within OpenConfig repositories and do see this open issue for ygot which is still accurate/unresolved: openconfig/ygot#107

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Ready to discuss

Development

Successfully merging this pull request may close these issues.

3 participants