summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorCheeze_It <none@none.com>2021-02-25 17:30:03 -0700
committerCheeze_It <none@none.com>2021-02-26 13:51:10 -0700
commit4bf55f9732dd44d2297d70c0587604df90a39757 (patch)
tree90bd23eaea14d8694a533371e4c45ec0ec9c68ff /data/templates/frr
parent3c64c79d7977869da3ca4dc70eb97ff9c6682e52 (diff)
downloadvyos-1x-4bf55f9732dd44d2297d70c0587604df90a39757.tar.gz
vyos-1x-4bf55f9732dd44d2297d70c0587604df90a39757.zip
BGP: T2100: Adding RFC8212 option toggle.
In this commit we add the default operation within BGP to have RFC8212 disabled for eBGP routes. This default should preserve the normal behavior for VyOS from earlier releases of FRR to the current latest release. Another option that we add is the ability to toggle whether or not RFC8212 is enabled or disabled.
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgp.frr.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 08b6cb791..4ac025eee 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -178,9 +178,11 @@
{% endmacro %}
!
router bgp {{ asn }}
-{# Disable eBGP policy by default until there is a CLI option #}
-{# Workaround for T3183 until we have decided about a migration script #}
+{% if parameters is defined and parameters.ebgp_requires_policy is defined %}
+ bgp ebgp-requires-policy
+{% else %}
no bgp ebgp-requires-policy
+{% endif %}
{# Workaround for T2100 until we have decided about a migration script #}
no bgp network import-check
{% if address_family is defined and address_family is not none %}