43342b33b8
This commit has following changes: * Add templates and code to support VoQ chassis iBGP peers * Add support to convert a new VoQChassisInternal element in the BGPSession element of the minigraph to a new BGP_VOQ_CHASSIS_NEIGHBOR table in CONFIG_DB. * Add a new set of "voq_chassis" templates to docker-fpm-frr * Add a new BGP peer manager to bgpcfgd to add neighbors from the BGP_VOQ_CHASSIS_NEIGHBOR table using the voq_chassis templates. * Add a test case for minigraph.py, making sure the VoQChassisInternal element creates a BGP_VOQ_CHASSIS_NEIGHBOR entry, but not if its value is "false". * Add a set of test cases for the new voq_chassis templates in sonic-bgpcfgd tests. Note that the templates expect the new "bgp bestpath peer-type multipath-relax" bgpd configuration to be available. Signed-off-by: Joanne Mikkelson <jmmikkel@arista.com>
24 lines
810 B
Django/Jinja
24 lines
810 B
Django/Jinja
!
|
|
! template: bgpd/templates/voq_chassis/peer-group.conf.j2
|
|
!
|
|
neighbor VOQ_CHASSIS_PEER peer-group
|
|
address-family ipv4
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'ToRRouter' %}
|
|
neighbor VOQ_CHASSIS_PEER allowas-in 1
|
|
{% endif %}
|
|
neighbor VOQ_CHASSIS_PEER activate
|
|
neighbor VOQ_CHASSIS_PEER addpath-tx-all-paths
|
|
neighbor VOQ_CHASSIS_PEER soft-reconfiguration inbound
|
|
exit-address-family
|
|
address-family ipv6
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'ToRRouter' %}
|
|
neighbor VOQ_CHASSIS_PEER allowas-in 1
|
|
{% endif %}
|
|
neighbor VOQ_CHASSIS_PEER activate
|
|
neighbor VOQ_CHASSIS_PEER addpath-tx-all-paths
|
|
neighbor VOQ_CHASSIS_PEER soft-reconfiguration inbound
|
|
exit-address-family
|
|
!
|
|
! end of template: bgpd/templates/voq_chassis/peer-group.conf.j2
|
|
!
|