Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 535 Bytes
{% if bgp is defined %}
router bgp {{ bgp.asn }}
bgp router-id {{ loopback.address }}
bgp log-neighbor-changes
{% for item in bgp.neighbor %}
neighbor {{ item.address }} remote-as {{ item.remote_as }}
{% endfor %}
!
address-family ipv4
{% for item in bgp.networks %}
network {{ item.network }} mask {{ item.mask }}
{% endfor %}
{% for item in bgp.neighbor %}
neighbor {{ item.address }} activate
{% endfor %}
{% if bgp.maxpath is defined %}
maximum-paths eibgp {{ bgp.maxpath }}
{% endif %}
exit-address-family
{% endif %}
You can’t perform that action at this time.