-
Notifications
You must be signed in to change notification settings - Fork 2
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
Updates on IP address and prefix representation #1
Conversation
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.
Thanks!
Approved this with a few suggestions.
draft-bormann-cbor-yang-standin.md
Outdated
Addresses that have zones given cannot use tag 54/52. | ||
Addresses with leading zeros cannot use tag 54/52. | ||
Addresses that do not comply with {{RFC5952}} cannot use tag 54. | ||
The encoder MAY normalize IPv6 addresses and prefixes that do not comply with {{RFC5952}} |
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 don't think I know what an encoder is here.
The conversion from stand-in tag to a legacy representation?
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.
Added a definition to the top.
draft-bormann-cbor-yang-standin.md
Outdated
Addresses with leading zeros cannot use tag 54/52. | ||
Addresses that do not comply with {{RFC5952}} cannot use tag 54. | ||
The encoder MAY normalize IPv6 addresses and prefixes that do not comply with {{RFC5952}} | ||
but can be converted into the stand-in representation. The encoder implementation SHOULD be clear |
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.
We tend not to use RFC 2119 keywords for documentation requirements.
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.
Fixed, thanks. (This is my first RFC, please be patient.)
draft-bormann-cbor-yang-standin.md
Outdated
but can be converted into the stand-in representation. The encoder implementation SHOULD be clear | ||
about whether this normalization is employed or not. | ||
|
||
If the schema specifies `ip-prefix`, the encoder MAY normalize prefixes with |
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.
normalize with or prefixes with? (Maybe an in-line example would clarify this.)
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.
clarified, hopefully
draft-bormann-cbor-yang-standin.md
Outdated
|
||
If the schema specifies a union between `ip-prefix` and `ip-address-and-prefix` (or a union of their subtypes), | ||
the encoder MUST prefer the `ip-address-and-prefix` stand-in over `ip-prefix` | ||
format. Specifically, it the schema allows to encode 2001:db8:1234::/48 both as |
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.
format. Specifically, it the schema allows to encode 2001:db8:1234::/48 both as | |
format. Specifically, if the schema allows to encode 2001:db8:1234::/48 both as |
draft-bormann-cbor-yang-standin.md
Outdated
non-zero bits after the prefix end. The encoder implementation SHOULD be clear | ||
about whether this normalization is employed or not. | ||
|
||
If the schema specifies a union between `ip-prefix` and `ip-address-and-prefix` (or a union of their subtypes), |
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.
We probably need to address unions in general.
Put in #2
No description provided.