-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated internal route policy for chassis-packet (#15349) (#15378)
- Loading branch information
1 parent
bd323a8
commit ffd062a
Showing
7 changed files
with
78 additions
and
6 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
15 changes: 15 additions & 0 deletions
15
src/sonic-bgpcfgd/tests/data/internal/instance.conf/chassis_packet_v4.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,15 @@ | ||
! | ||
! template: bgpd/templates/internal/instance.conf.j2 | ||
! | ||
neighbor 10.10.10.10 remote-as 555 | ||
neighbor 10.10.10.10 description remote_peer | ||
neighbor 10.10.10.10 timers 3 10 | ||
neighbor 10.10.10.10 timers connect 10 | ||
address-family ipv4 | ||
neighbor 10.10.10.10 peer-group INTERNAL_PEER_V4 | ||
neighbor 10.10.10.10 next-hop-self force | ||
neighbor 10.10.10.10 activate | ||
exit-address-family | ||
! | ||
! end of template: bgpd/templates/internal/instance.conf.j2 | ||
! |
23 changes: 23 additions & 0 deletions
23
src/sonic-bgpcfgd/tests/data/internal/instance.conf/chassis_packet_v4.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,23 @@ | ||
{ | ||
"CONFIG_DB__DEVICE_METADATA": { | ||
"localhost": { | ||
"sub_role": "FrontEnd", | ||
"type": "SpineRouter", | ||
"switch_type": "chassis-packet" | ||
} | ||
}, | ||
"neighbor_addr": "10.10.10.10", | ||
"bgp_session": { | ||
"asn": "555", | ||
"name": "remote_peer", | ||
"keepalive": "5", | ||
"holdtime": "30", | ||
"admin_status": "down", | ||
"ASIC": "something" | ||
}, | ||
"constants": { | ||
"deployment_id_asn_map": { | ||
"5": "51111" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/sonic-bgpcfgd/tests/data/internal/instance.conf/chassis_packet_v6.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,15 @@ | ||
! | ||
! template: bgpd/templates/internal/instance.conf.j2 | ||
! | ||
neighbor fc::10 remote-as 555 | ||
neighbor fc::10 description remote_peer | ||
neighbor fc::10 timers 3 10 | ||
neighbor fc::10 timers connect 10 | ||
address-family ipv6 | ||
neighbor fc::10 peer-group INTERNAL_PEER_V6 | ||
neighbor fc::10 next-hop-self force | ||
neighbor fc::10 activate | ||
exit-address-family | ||
! | ||
! end of template: bgpd/templates/internal/instance.conf.j2 | ||
! |
23 changes: 23 additions & 0 deletions
23
src/sonic-bgpcfgd/tests/data/internal/instance.conf/chassis_packet_v6.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,23 @@ | ||
{ | ||
"CONFIG_DB__DEVICE_METADATA": { | ||
"localhost": { | ||
"sub_role": "FrontEnd", | ||
"type": "SpineRouter", | ||
"switch_type": "chassis-packet" | ||
} | ||
}, | ||
"neighbor_addr": "fc::10", | ||
"bgp_session": { | ||
"asn": "555", | ||
"name": "remote_peer", | ||
"keepalive": "5", | ||
"holdtime": "30", | ||
"admin_status": "down", | ||
"ASIC": "something" | ||
}, | ||
"constants": { | ||
"deployment_id_asn_map": { | ||
"5": "51111" | ||
} | ||
} | ||
} |
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