Skip to content
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 decap mpls-in-gre #1260

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add decap mpls-in-gre #1260

wants to merge 2 commits into from

Conversation

dplore
Copy link
Member

@dplore dplore commented Feb 25, 2025

Change Scope

  • Add a leaf to configure a policy-forwarding action to decapsulate MPLS in GRE packets.

/network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/action/config/decapsulate-mpls-in-gre

Platform Implementations

  • Arista EOS - decap-group
  • EOS native config creates a system wide configuration to decap packets with a specific destination IP address (decap-ip)
switch(config)#ip decap-group decap-gp-1
switch(config)#tunnel type gre
switch(config)#tunnel decap-ip 100.1.1.2
switch(config)#tunnel overlay mpls qos map mpls-traffic-class to traffic-class
Router # configure
Router(config)# interface tunnel-ip1
Router(config-if)# ipv4 address 112.0.0.2 255.255.255.0
Router(config-if)# tunnel mode gre ipv4 decap
Router(config-if)# tunnel source Loopback 0
Router(config-if)# tunnel destination 10.0.0.1

! PBR Configuration for GRE Tunnel Decapsulation
Router(config)# class-map type traffic match-all test_gre1
Router(config-cmap)# match protocol gre
Router(config-cmap)# match destination-address ipv4 50.0.0.1 255.255.255.255
Router(config-cmap)# match source-address ipv4 10.0.0.1 255.255.255.255
Router(config-cmap)# end-class-map
Router(config)# policy-map type pbr P1-test
Router(config-pmap)# class type traffic test_gre1
Router(config-pmap-c)#decapsulate gre
Router(config-pmap-c)# end-policy-map
Router(config)# vrf-policy vrf default address-family ipv4 policy type pbr input P1-test

@dplore dplore requested a review from a team as a code owner February 25, 2025 19:45
@OpenConfigBot
Copy link

OpenConfigBot commented Feb 25, 2025

No major YANG version changes in commit 417f313

@rgwilton
Copy link

rgwilton commented Mar 5, 2025

Please can you clarify why this needs to be a specific mpls-in-gre-decaps, and not just a gre-decaps. E.g., looking at your Cisco config example there isn't any mention of MPLS config, although perhaps that is a slightly different config example.

@dplore
Copy link
Member Author

dplore commented Mar 5, 2025

Please can you clarify why this needs to be a specific mpls-in-gre-decaps, and not just a gre-decaps. E.g., looking at your Cisco config example there isn't any mention of MPLS config, although perhaps that is a slightly different config example.

I believe this is needed to provide a hint that the payload is expected to be MPLS and forwarded as such. However, it is a good question for implementation owners to answer. Do you need this hint for MPLS or is the existing decapsulate-gre sufficient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: last-call
Development

Successfully merging this pull request may close these issues.

3 participants