-
Notifications
You must be signed in to change notification settings - Fork 1.4k
route-map encapsulation gretap #19786
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
Open
pguibert6WIND
wants to merge
11
commits into
FRRouting:master
Choose a base branch
from
pguibert6WIND:rmap_encapsulation_gretap
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
65f7067
zebra: add gretap interface information
pguibert6WIND 2acc407
zebra, link: zif_type attribute to struct interface
pguibert6WIND 2444744
zebra, lib: add support for ip6gre and ip6gretap interface
pguibert6WIND 25ef716
bgpd: use zif_type values for l3vpn encapsulation type
pguibert6WIND 8b85936
bgpd, yang, doc: add gretap encapsulation type in route-map
pguibert6WIND d4a0146
bgpd, topotests: fix validate imported routes only in 'import vrf' cases
pguibert6WIND cd294aa
topotests: fix use 'mpls bgp forwarding' to make test 12502 work
pguibert6WIND c75050f
topotests: bgp_vpnv4_gre, add l3vpn route-map test for gretap
pguibert6WIND 3ea3c77
topotests: bgp_vpnv4_noretain, use ebgp connection to import mpls paths
pguibert6WIND 1c4829e
topotests: bgp_srv6l3vpn_sid, fix add 'mpls bgp forwarding'
pguibert6WIND 5dc35cb
topotests: bgp_vrf_route_leak_basic, add r2 peering
pguibert6WIND File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| ! | ||
| interface r1-eth0 | ||
| ip address 192.168.179.4/24 | ||
| mpls bgp forwarding | ||
| exit | ||
| ! | ||
| router bgp 65001 | ||
|
|
||
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| router bgp 65500 | ||
| bgp router-id 192.0.2.1 | ||
| neighbor 192.0.2.2 remote-as 65500 | ||
| neighbor 192.0.2.2 update-source 192.0.2.1 | ||
| address-family ipv4 unicast | ||
| no neighbor 192.0.2.2 activate | ||
| exit-address-family | ||
| address-family ipv4 vpn | ||
| neighbor 192.0.2.2 activate | ||
| neighbor 192.0.2.2 route-map rmap in | ||
| exit-address-family | ||
| ! | ||
| router bgp 65500 vrf vrf1 | ||
| bgp router-id 192.0.2.1 | ||
| address-family ipv4 unicast | ||
| redistribute connected | ||
| distance bgp 21 201 41 | ||
| label vpn export 101 | ||
| rd vpn export 444:1 | ||
| rt vpn both 52:100 | ||
| export vpn | ||
| import vpn | ||
| exit-address-family | ||
| ! | ||
| route-map rmap permit 1 | ||
| set l3vpn next-hop encapsulation gretap | ||
| ! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why are we completely dropping the protocol?
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.
About protocol, I need to think..
Link layer protocol is not precise enough to know I am over a GRETAP (LLT ETHERNET) or a GRE interface (LLT_IPGRE).
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.
Since it was storing protocol and allowing matches against it, who have you broken with this change?
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.
The IP protocol of the 'rmap_l3vpn_nexthop_encapsulation_set'
structure is replaced by the zif_type, as interfaces used as backbone
for mpls ca either be ptp L3 GRE interfaces or ptp L2 GRE (GRETAP)
interfaces.
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.
I was considering IP6GRE and GRE equal for BGP.
I will use the same mechanism for IP6GRETAP and GRETAP interfaces.
So one new keywords: gretap