-
Notifications
You must be signed in to change notification settings - Fork 713
Update the description of ip-ttl and dscp #1511
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
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 |
|---|---|---|
|
|
@@ -843,8 +843,10 @@ submodule openconfig-aft-common { | |
| leaf dscp { | ||
| type oc-inet:dscp; | ||
| description | ||
| "DSCP value to use for the UDP header of the encapsulated | ||
| packet."; | ||
| "This leaf reflects the configured/default DSCP value that is used | ||
| in the outer header during packet encapsulation. When this leaf is | ||
| not set, the DSCP value of the inner packet is copied over as the | ||
| outer packet's DSCP value during encapsulation."; | ||
| } | ||
|
|
||
| leaf src-udp-port { | ||
|
|
@@ -875,10 +877,10 @@ submodule openconfig-aft-common { | |
| leaf ip-ttl { | ||
| type uint8; | ||
| description | ||
| "This leaf reflects the configured/default IP TTL value that is used | ||
| "This leaf reflects the configured/default IP TTL / Hop Limit value that is used | ||
| in the outer header during packet encapsulation. When this leaf is | ||
| not set, the TTL value of the inner packet is copied over as the | ||
| outer packet's IP TTL value during encapsulation."; | ||
| not set, the IP TTL / Hop Limit value of the inner packet is copied over as the | ||
|
Contributor
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. HI @tasaleh , if your intent is towards v6 version of IP ttl , can we add it as a different field so that it is consistent with v6 terminology ?
Author
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. Hello @navaneethyv, We have raised this point in this PR 1492. The response was to keep using
Contributor
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 would prefer this to be consistent to the rfc8200 for IPv6. If it is "Hop Limit" for IPv6, I feel the OC should match.
Contributor
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. However, just saw that #1492 is merged now after multiple discussions with the following reasoning and looks fine to me. Summary: The deviation is purely a YANG modeling compromise. In pull/1492, the slightly inaccurate naming (ip-ttl instead of hop-limit for IPv6) was accepted to maximize code reuse by importing an existing module's structural grouping. Doing something different for IPv6 will add additional complexities without much benefit |
||
| outer packet's IP TTL / Hop Limit value during encapsulation."; | ||
| } | ||
| } | ||
|
|
||
|
|
||
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.
This makes some assumptions about the behavior of DSCP value in this leaf. Can you please add 2 supporting implementations for this ?