-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[chassis-packet] minigraph parsing and BGP template changes #8966
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4766fcf
[submodule update] sonic-db-syncd
abdosi 9746bb3
Merge remote-tracking branch 'upsteam/master'
abdosi 061821d
Merge remote-tracking branch 'upsteam/master'
abdosi 9e61e53
Merge remote-tracking branch 'upsteam/master'
abdosi 5c3a87f
Merge remote-tracking branch 'upsteam/master'
abdosi 5775c20
Merge remote-tracking branch 'upsteam/master'
abdosi 3c20361
Merge remote-tracking branch 'upsteam/master'
abdosi cc1210d
Merge remote-tracking branch 'upsteam/master'
abdosi 7bae398
Merge remote-tracking branch 'upsteam/master'
abdosi 7126f88
Merge remote-tracking branch 'upsteam/master'
abdosi 3e74182
Initial Commit for Chassis in Packet mode and multi-asic.
abdosi 6e2fecf
Some Fixes
abdosi 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 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
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
13 changes: 13 additions & 0 deletions
13
src/sonic-bgpcfgd/tests/data/internal/peer-group.conf/param_chasiss_packet.json
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,13 @@ | ||
{ | ||
"CONFIG_DB__DEVICE_METADATA": { | ||
"localhost": { | ||
"type": "SpineRouter", | ||
"sub_role": "BackEnd", | ||
"switch_type": "chassis-packet" | ||
} | ||
}, | ||
"CONFIG_DB__LOOPBACK_INTERFACE": { | ||
"Loopback4096|10.10.10.10/32": {}, | ||
"Loopback4096|2603:10e2:400::3/128": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/sonic-bgpcfgd/tests/data/internal/peer-group.conf/result_chasiss_packet.conf
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,22 @@ | ||
! | ||
! template: bgpd/templates/internal/peer-group.conf.j2 | ||
! | ||
neighbor INTERNAL_PEER_V4 peer-group | ||
neighbor INTERNAL_PEER_V6 peer-group | ||
address-family ipv4 | ||
neighbor INTERNAL_PEER_V4 update-source 10.10.10.10 | ||
neighbor INTERNAL_PEER_V4 soft-reconfiguration inbound | ||
neighbor INTERNAL_PEER_V4 allowas-in 1 | ||
neighbor INTERNAL_PEER_V4 route-map FROM_BGP_INTERNAL_PEER_V4 in | ||
neighbor INTERNAL_PEER_V4 route-map TO_BGP_INTERNAL_PEER_V4 out | ||
exit-address-family | ||
address-family ipv6 | ||
neighbor INTERNAL_PEER_V4 update-source 2603:10e2:400::3 | ||
neighbor INTERNAL_PEER_V6 soft-reconfiguration inbound | ||
neighbor INTERNAL_PEER_V6 allowas-in 1 | ||
neighbor INTERNAL_PEER_V6 route-map FROM_BGP_INTERNAL_PEER_V6 in | ||
neighbor INTERNAL_PEER_V6 route-map TO_BGP_INTERNAL_PEER_V6 out | ||
exit-address-family | ||
! | ||
! end of template: bgpd/templates/internal/peer-group.conf.j2 | ||
! |
67 changes: 67 additions & 0 deletions
67
src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/packet_chassis.conf
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,67 @@ | ||
! | ||
! template: bgpd/bgpd.main.conf.j2 | ||
! | ||
! bgp multiple-instance | ||
! | ||
! BGP configuration | ||
! | ||
! TSA configuration | ||
! | ||
ip prefix-list PL_LoopbackV4 permit 55.55.55.55/32 | ||
! | ||
ipv6 prefix-list PL_LoopbackV6 permit fc00::/64 | ||
! | ||
ip prefix-list LOCAL_VLAN_IPV4_PREFIX seq 5 permit 10.10.10.0/24 | ||
! | ||
ipv6 prefix-list LOCAL_VLAN_IPV6_PREFIX seq 10 permit fc01::/64 | ||
! | ||
route-map HIDE_INTERNAL permit 10 | ||
set community no-export | ||
! | ||
! | ||
router bgp 55555 | ||
! | ||
bgp log-neighbor-changes | ||
no bgp default ipv4-unicast | ||
no bgp ebgp-requires-policy | ||
! | ||
bgp bestpath as-path multipath-relax | ||
! | ||
bgp graceful-restart restart-time 240 | ||
bgp graceful-restart | ||
bgp graceful-restart preserve-fw-state | ||
bgp graceful-restart select-defer-time 45 | ||
! | ||
bgp router-id 55.55.55.56 | ||
! | ||
network 55.55.55.55/32 | ||
network 55.55.55.56/32 route-map HIDE_INTERNAL | ||
! | ||
address-family ipv6 | ||
network fc00::1/64 | ||
exit-address-family | ||
address-family ipv6 | ||
network fc00::2/128 route-map HIDE_INTERNAL | ||
exit-address-family | ||
! | ||
network 10.10.10.1/24 | ||
address-family ipv6 | ||
network fc01::1/64 | ||
exit-address-family | ||
! | ||
address-family ipv4 | ||
redistribute connected route-map HIDE_INTERNAL | ||
exit-address-family | ||
address-family ipv6 | ||
redistribute connected route-map HIDE_INTERNAL | ||
exit-address-family | ||
! | ||
address-family ipv4 | ||
maximum-paths 64 | ||
exit-address-family | ||
address-family ipv6 | ||
maximum-paths 64 | ||
exit-address-family | ||
! | ||
! end of template: bgpd/bgpd.main.conf.j2 | ||
! |
35 changes: 35 additions & 0 deletions
35
src/sonic-bgpcfgd/tests/data/sonic-cfggen/bgpd.main.conf.j2/packet_chassis.json
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,35 @@ | ||
{ | ||
"DEVICE_METADATA": { | ||
"localhost": { | ||
"bgp_asn": "55555", | ||
"sub_role": "FrontEnd", | ||
"switch_type": "chassis-packet" | ||
} | ||
}, | ||
"LOOPBACK_INTERFACE": { | ||
"Loopback0|55.55.55.55/32": {}, | ||
"Loopback0|fc00::1/128": {}, | ||
"Loopback4096|55.55.55.56/32": {}, | ||
"Loopback4096|fc00::2/128": {} | ||
}, | ||
"VLAN_INTERFACE": { | ||
"Vlan10|10.10.10.1/24": {}, | ||
"Vlan10|fc01::1/64": {}, | ||
"Vlan20": {"vnet_name": "Vnet1"}, | ||
"Vlan20|20.20.20.1/24": {}, | ||
"Vlan20|fd01::1/64": {} | ||
}, | ||
"constants": { | ||
"bgp": { | ||
"multipath_relax": { | ||
"enabled": true | ||
}, | ||
"graceful_restart": { | ||
"enabled": true | ||
}, | ||
"maximum_paths": { | ||
"enabled": true | ||
} | ||
} | ||
} | ||
} |
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
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.
These two lines are present in lines 40 and 41, seems repeated here
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.
working on another PR.. will fix it there.