-
Notifications
You must be signed in to change notification settings - Fork 668
Add GRE and MPLS encap-headers to network-instance/static #1308
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?
Conversation
No major YANG version changes in commit a0b5ad6 |
release/models/network-instance/openconfig-network-instance-static.yang
Outdated
Show resolved
Hide resolved
Updated the PR description to show the tree. |
@robshakir ready for your review |
type oc-inet:ip-address; | ||
description | ||
"The source IP address for the GRE encapsulation may be expressed | ||
using this leaf (src-ip) or if may be derived from |
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.
using this leaf (src-ip) or if may be derived from | |
using this leaf (src-ip) or it may be derived from |
description | ||
"The source IP address for the GRE encapsulation may be expressed | ||
using this leaf (src-ip) or if may be derived from | ||
'../../interface-ref/state/subinterface'"; |
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.
It's not quite clear what this means. Do you intend to say that the source IP is set based on the interface the policy is applied to? I recall that there's some discussion of wanting to have policies that are not just applied to interfaces.
Also, is this widely supported?
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.
Honestly, I cut and paste this from the existing aft definition for next-hop with GRE encapsulation, introduced at #1038
I read this intent as the src-ip for the encapsulation may be statically configured using this leaf. If not populated the src-ip is expected to be dynamically derived from the subinterface that the packet is forwarded from. If an implementation requires a static src-ip, then it should return an error if this is unspecified.
How does that sound for a description?
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.
Updated description to be more explicit. @romeyod for any addition comment.
Change Scope
Platform Implementations
While device implementations today widely support encapsulation of MPLS, GRE and MPLS into GRE packets this PR provides a method to configure a static next-hop-group for the purpose of encapsulation. Using next-hops for this purpose is a new feature being pursued from multiple device implementations.
Tree view
Example configuration for static next-hops with 2 MPLS labeled inside GRE encapsulation