Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions release/models/aft/openconfig-aft-common.yang
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown
Contributor

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 ?

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 {
Expand Down Expand Up @@ -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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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 ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The 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 ip-ttl with V6. Please see the comments from @earies and @ ElodinLaarz
This is the reason why we propose this description change to capture the new usage.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The 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.";
}
}

Expand Down
Loading