2017-03-02 13:33:46 -06:00
|
|
|
[global.config]
|
2017-08-08 18:23:58 -05:00
|
|
|
as = {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
|
2017-09-12 16:13:27 -05:00
|
|
|
router-id = "{{ LOOPBACK_INTERFACE.keys()[0][1] }}"
|
2017-08-08 18:23:58 -05:00
|
|
|
{% for neighbor_addr, bgp_session in BGP_NEIGHBOR.iteritems() %}
|
2017-09-13 23:23:06 -05:00
|
|
|
{% if bgp_session['asn'] | int != 0 %}
|
2017-03-02 13:33:46 -06:00
|
|
|
[[neighbors]]
|
|
|
|
[neighbors.config]
|
|
|
|
peer-as = {{ bgp_session['asn'] }}
|
2017-08-08 18:23:58 -05:00
|
|
|
neighbor-address = "{{ neighbor_addr }}"
|
2017-03-02 13:33:46 -06:00
|
|
|
[neighbors.graceful-restart.config]
|
|
|
|
enabled = true
|
|
|
|
[[neighbors.afi-safis]]
|
|
|
|
[neighbors.afi-safis.config]
|
2017-08-08 18:23:58 -05:00
|
|
|
{% if neighbor_addr | ipv6 %}
|
2017-03-02 13:33:46 -06:00
|
|
|
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"]
|
|
|
|
|