-
Notifications
You must be signed in to change notification settings - Fork 2
feat(bird): ibgp and rr #7
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
ljcbaby
wants to merge
9
commits into
master
Choose a base branch
from
ibgp
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
9 commits
Select commit
Hold shift + click to select a range
eb4795c
feat(bird): ibgp and rr
ljcbaby 45559ed
Update bird/ibgp_rrs.conf
ljcbaby ecde42d
Refactor BGP configuration templates and protocols
ljcbaby cc64b51
Refactor BGP templates and protocols in ibgp_rrs.conf
ljcbaby 5d98261
fix
ljcbaby 4eb322f
Refactor BGP configuration templates and protocols
ljcbaby b2e8eb5
Refactor BGP templates and add location update
ljcbaby c096989
111
ljcbaby 0afa977
ibgp_rrs
ljcbaby 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| template bgp ibgp_base { | ||
| local as LOCAL_ASN; | ||
| source address SERVE_IP; | ||
| graceful restart on; | ||
| # bfd on; | ||
| ipv4 { | ||
| next hop self ebgp; | ||
| igp table OSPF_table; | ||
| table BGP_table; | ||
| import filter { | ||
| dn11_update_cross_ibgp(); | ||
| dn11_update_server_location(); | ||
| accept; | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| template bgp ibgp_peers from ibgp_base { | ||
| ipv4 { | ||
| next hop self ebgp; | ||
| export filter { | ||
| if source != RTS_BGP then reject; | ||
ljcbaby marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| accept; | ||
| }; | ||
| }; | ||
| } | ||
|
|
||
| # for ibgp between rr | ||
| template bgp ibgp_rrs from ibgp_peers { | ||
| ipv4 { | ||
| add paths tx; | ||
| add paths rx; | ||
| } | ||
| } | ||
|
|
||
| template bgp ibgp_rr from ibgp_base { | ||
| rr client; | ||
| rr cluster id <cluster_id, an ip>; | ||
BaiMeow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ipv4 { | ||
| add paths tx; | ||
| export filter { | ||
| if source != RTS_BGP then reject; | ||
| accept; | ||
| }; | ||
| }; | ||
| } | ||
|
|
||
| template bgp ibgp_rr_client from ibgp_base { | ||
| ipv4 { | ||
| add paths rx; | ||
| export filter { | ||
| if source != RTS_BGP then reject; | ||
ljcbaby marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| accept; | ||
| }; | ||
| }; | ||
| } | ||
|
|
||
| # plain ibgp between RRs | ||
| protocol bgp IBGP_<name> from ibgp_peers { | ||
| neighbor <peer_serve_ip> internal; | ||
| } | ||
|
|
||
| # ibgp from RR Server to RR Client | ||
| protocol bgp IBGP_<name> from ibgp_rr { | ||
| neighbor <peer_serve_ip> internal; | ||
| } | ||
|
|
||
| # or a dynamic protocol | ||
| protocol bgp IBGP_RRClient from ibgp_rr { | ||
| neighbor range <your_cidr> internal; | ||
| dynamic name "RRClient"; | ||
| # password "string" # when needed | ||
| } | ||
|
|
||
| # ibgp from RR Client to RR Server | ||
| protocol bgp IBGP_<name> from ibgp_rr_client { | ||
| neighbor <peer_serve_ip> internal; | ||
| } | ||
|
|
||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.