sonic-buildimage/dockers/docker-fpm-gobgp/gobgpd.conf.j2

29 lines
798 B
Plaintext
Raw Normal View History

[global.config]
as = {{ minigraph_bgp_asn }}
router-id = "{{ minigraph_lo_interfaces[0]['addr'] }}"
{% for bgp_session in minigraph_bgp %}
{% if bgp_session['asn'] != 0 %}
[[neighbors]]
[neighbors.config]
peer-as = {{ bgp_session['asn'] }}
neighbor-address = "{{ bgp_session['addr'] }}"
[neighbors.graceful-restart.config]
enabled = true
[[neighbors.afi-safis]]
[neighbors.afi-safis.config]
{% if bgp_session['addr'] | ipv6 %}
afi-safi-name = "ipv6-unicast"
{% else %}
afi-safi-name = "ipv4-unicast"
{% endif %}
[neighbors.afi-safis.mp-graceful-restart.config]
enabled = true
{% endif %}
{% endfor %}
[zebra]
[zebra.config]
enabled = true
url = "unix:/var/run/quagga/zserv.api"
redistribute-route-type-list = ["connect"]