mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-04 22:33:07 -04:00
net/frr: fix bgp v6, add activate to config (#621)
This commit is contained in:
parent
31b92b75f4
commit
699f1f28a3
1 changed files with 8 additions and 0 deletions
|
|
@ -84,6 +84,13 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.quagga.bgp.neighbors.neighbor') %}
|
||||
{% for neighbor in helpers.toList('OPNsense.quagga.bgp.neighbors.neighbor') %}
|
||||
{% if neighbor.enabled == '1' and ':' in neighbor.address %}
|
||||
no neighbor {{ neighbor.address }} activate
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
exit-address-family
|
||||
!
|
||||
address-family ipv6 unicast
|
||||
|
|
@ -102,6 +109,7 @@ router bgp {{ OPNsense.quagga.bgp.asnumber }}
|
|||
{% if helpers.exists('OPNsense.quagga.bgp.neighbors.neighbor') %}
|
||||
{% for neighbor in helpers.toList('OPNsense.quagga.bgp.neighbors.neighbor') %}
|
||||
{% if neighbor.enabled == '1' and ':' in neighbor.address %}
|
||||
neighbor {{ neighbor.address }} activate
|
||||
{% if 'nexthopself' in neighbor and neighbor.nexthopself == '1' %}
|
||||
neighbor {{ neighbor.address }} next-hop-self
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue