forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zebra.conf] Fix template issue with multiple lo addresses (sonic-net…
…#1662) * [zebra.conf] Fix template issue with multiple lo addresses * Add unitest for Loopback1
- Loading branch information
Showing
7 changed files
with
171 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 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 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,91 @@ | ||
! | ||
! =========== Managed by sonic-cfggen DO NOT edit manually! ==================== | ||
! generated by templates/quagga/bgpd.conf.j2 with config DB data | ||
! file: bgpd.conf | ||
! | ||
! | ||
hostname switch-t0 | ||
password zebra | ||
log syslog informational | ||
log facility local4 | ||
! enable password ! | ||
! | ||
! bgp multiple-instance | ||
! | ||
route-map FROM_BGP_SPEAKER_V4 permit 10 | ||
! | ||
route-map TO_BGP_SPEAKER_V4 deny 10 | ||
! | ||
router bgp 65100 | ||
bgp log-neighbor-changes | ||
bgp bestpath as-path multipath-relax | ||
no bgp default ipv4-unicast | ||
bgp graceful-restart | ||
bgp router-id 10.1.0.32 | ||
network 10.1.0.32/32 | ||
address-family ipv6 | ||
network fc00:1::32/64 | ||
exit-address-family | ||
network 192.168.0.1/27 | ||
neighbor 10.0.0.57 remote-as 64600 | ||
neighbor 10.0.0.57 description ARISTA01T1 | ||
address-family ipv4 | ||
neighbor 10.0.0.57 allowas-in 1 | ||
neighbor 10.0.0.57 activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor 10.0.0.59 remote-as 64600 | ||
neighbor 10.0.0.59 description ARISTA02T1 | ||
address-family ipv4 | ||
neighbor 10.0.0.59 allowas-in 1 | ||
neighbor 10.0.0.59 activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor 10.0.0.61 remote-as 64600 | ||
neighbor 10.0.0.61 description ARISTA03T1 | ||
address-family ipv4 | ||
neighbor 10.0.0.61 allowas-in 1 | ||
neighbor 10.0.0.61 activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor 10.0.0.63 remote-as 64600 | ||
neighbor 10.0.0.63 description ARISTA04T1 | ||
address-family ipv4 | ||
neighbor 10.0.0.63 allowas-in 1 | ||
neighbor 10.0.0.63 activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor fc00::7a remote-as 64600 | ||
neighbor fc00::7a description ARISTA03T1 | ||
address-family ipv6 | ||
neighbor fc00::7a allowas-in 1 | ||
neighbor fc00::7a activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor fc00::7e remote-as 64600 | ||
neighbor fc00::7e description ARISTA04T1 | ||
address-family ipv6 | ||
neighbor fc00::7e allowas-in 1 | ||
neighbor fc00::7e activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor fc00::72 remote-as 64600 | ||
neighbor fc00::72 description ARISTA01T1 | ||
address-family ipv6 | ||
neighbor fc00::72 allowas-in 1 | ||
neighbor fc00::72 activate | ||
maximum-paths 64 | ||
exit-address-family | ||
neighbor fc00::76 remote-as 64600 | ||
neighbor fc00::76 description ARISTA02T1 | ||
address-family ipv6 | ||
neighbor fc00::76 allowas-in 1 | ||
neighbor fc00::76 activate | ||
maximum-paths 64 | ||
exit-address-family | ||
! | ||
maximum-paths 64 | ||
! | ||
route-map ISOLATE permit 10 | ||
set as-path prepend 65100 | ||
! |
This file contains 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 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,44 @@ | ||
! | ||
! =========== Managed by sonic-cfggen DO NOT edit manually! ==================== | ||
! generated by templates/quagga/zebra.conf.j2 using config DB data | ||
! file: zebra.conf | ||
! | ||
! | ||
hostname switch-t0 | ||
password zebra | ||
enable password zebra | ||
! | ||
! Enable link-detect (default disabled) | ||
interface PortChannel01 | ||
link-detect | ||
! | ||
interface PortChannel02 | ||
link-detect | ||
! | ||
interface PortChannel03 | ||
link-detect | ||
! | ||
interface PortChannel04 | ||
link-detect | ||
! | ||
! | ||
! set static default route to mgmt gateway as a backup to learned default | ||
ip route 0.0.0.0/0 10.0.0.1 200 | ||
! | ||
! Set ip source to loopback for bgp learned routes | ||
route-map RM_SET_SRC permit 10 | ||
set src 10.1.0.32 | ||
! | ||
|
||
route-map RM_SET_SRC6 permit 10 | ||
set src fc00:1::32 | ||
! | ||
ip protocol bgp route-map RM_SET_SRC | ||
! | ||
ipv6 protocol bgp route-map RM_SET_SRC6 | ||
! | ||
! | ||
log syslog informational | ||
log facility local4 | ||
! | ||
|
This file contains 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 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