-
Notifications
You must be signed in to change notification settings - Fork 656
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
Add gre
container under next-hops aft entry state. Add src-ip
, dst-ip
and ttl
under gre
aft entry state for telemetry.
#1038
Conversation
Add src-ip, dst-ip and ttl under gre aft entry state for telemetry.
No major YANG version changes in commit 28166f8 |
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 few comments, but this LGTM.
One thing that I'll note is that we're going to end up with a few different places that src-ip
and dst-ip
leaves are duplicated for X-over-IP encaps. I'm not worried about that since I think its logical to think "this is GRE over IP and the dest of the IP header is X", but I just wanted to highlight this here.
This also LGTM for how it would be represented in gRIBI.
Doesn't need to be handled in this PR -- but in reviewing this I had a thought. If we were doing MPLS over GRE then we'll specify something in the MPLS-related leaves and then subsequently in the GRE container. There are a few options:
WDYT? |
https://github.com/openconfig/public/blob/master/release/models/aft/openconfig-aft-common.yang#L272 Description of tunnel-src-ip-address is confusing. It can be used to populate gre tunnel src address. |
IMHO a new |
Makes sense to update the documentation. Not sure if we should couple that with this PR. Maybe file a issue and @robshakir and company to start a separate discussion. |
Merging into main branch for pyangbind check fix. |
w.r.t
let's continue this discussion here: #1040 |
/gcbrun |
/gcbrun |
Agreed, ideally we have some option that allows exposing any number of nested encapsulations. I like this option because it keeps the afts table flat. Do you mind refactoring this PR to implement leaf-list for the list of encaps? Something like:
|
This will need to a LIST of the entire encap header state since
@robshakir @dplore let me know your thoughts on this. Not sure if we can make each of the "encap-header" definition different per encap type i.e. |
So we need to have a leaf-list of encap-headers that has a typedef/container with all the fields per encapsulation like src-ip, dst-ip, ttl and tos as well as the encapsulation header type. This way will be more future safe and we can support any encapsulation combination including theoretically GRE over GRE and more. |
How about defining containers for each encap with it's own set of custom state leaves? Since encaps can be quite different, I am not sure it is feasible to have a list of encaps, but rather models containers for each encap with typed leaves.
|
@dplore Maybe I am being a bit dense here. Can you please simplify your suggestion for me? The original intent of the PR was to add gre container under next-hops aft entry state. Add src-ip, dst-ip and ttl under gre aft entry state for telemetry. This was being achieved by using The only reason the List/stack on encap can into the discussion was as a suggestion/food for thought by @robshakir and we were planning to take it up later. I know this PR has dragged on for a while so I am just TLDRing it for any other reader/party that comes across it :) |
Please add this description change. It should be in this PR because this PR introduces a |
Ah yes, let's consider this comment thread out of scope for this PR. The current PR scope for GRE only is ok as is and does not need to consider refactoring how any/all tunnel encapsulations are modeled in OC. |
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.
Please add a description change for tunnel-src-ip-address
as per the issue:
https://github.com/openconfig/public/blob/master/release/models/aft/openconfig-aft-common.yang#L272
I think it is appropriate for this description change to be in this PR because this PR introduces a new src-ip
leaf which could be confused with the existing tunnel-src-ip-address
. Clarifying that tunnel-src-ip-address
is only used for vxlan in the formal description is good.
The git history will point to this PR and our mention of #1040 for additional context.
Other than this, LGTM. This will be reviewed at the Apr 30, 2024 OC Operators meeting
Thansk @dplore. I have updated the PR with the requested changes. Let me know if any other action is needed. |
/gcbrun |
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.
One more comment on the description for src-ip and I think it's ready to review at the April 30th OC operators meeting.
Co-authored-by: Darren Loher <[email protected]>
Thanks @dplore |
/gcbrun |
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, I don't see any additional changes needed. This is ready to merge, pending Apr 30, 2024 OC Operators review.
Reviewed in Apr 30 OC operators meeting without objection. |
Change Scope
gre
container under next-hops aft entry state.src-ip
,dst-ip
andttl
undergre
aft entry state for telemetry.Platform Implementations
Relevant pyang output: