diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-30 21:47:33 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-30 21:47:33 +0200 |
commit | 3a8b7d7a10c23c0ffccebfca23054fd5c8a50018 (patch) | |
tree | a56c58c0da0931e0bbbfba65257d317006476ace | |
parent | d79cbf74142d4ab9fb00ff583c147a95a134ed92 (diff) | |
download | vyos-1x-3a8b7d7a10c23c0ffccebfca23054fd5c8a50018.tar.gz vyos-1x-3a8b7d7a10c23c0ffccebfca23054fd5c8a50018.zip |
bgp: T3590: limiting maximum number of prefixes to be sent to a peer
-rw-r--r-- | data/templates/frr/bgpd.frr.tmpl | 3 | ||||
-rw-r--r-- | interface-definitions/include/bgp/afi-common.xml.i | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl index 99d80e776..158da3605 100644 --- a/data/templates/frr/bgpd.frr.tmpl +++ b/data/templates/frr/bgpd.frr.tmpl @@ -173,6 +173,9 @@ {% if afi_config.maximum_prefix is defined and afi_config.maximum_prefix is not none %} neighbor {{ neighbor }} maximum-prefix {{ afi_config.maximum_prefix }} {% endif %} +{% if afi_config.maximum_prefix_out is defined and afi_config.maximum_prefix_out is not none %} + neighbor {{ neighbor }} maximum-prefix-out {{ afi_config.maximum_prefix_out }} +{% endif %} {% if afi_config.nexthop_self is defined %} neighbor {{ neighbor }} next-hop-self {{ 'force' if afi_config.nexthop_self.force is defined }} {% endif %} diff --git a/interface-definitions/include/bgp/afi-common.xml.i b/interface-definitions/include/bgp/afi-common.xml.i index 20b0dda66..62beff40c 100644 --- a/interface-definitions/include/bgp/afi-common.xml.i +++ b/interface-definitions/include/bgp/afi-common.xml.i @@ -88,6 +88,18 @@ </constraint> </properties> </leafNode> +<leafNode name="maximum-prefix-out"> + <properties> + <help>Maximum number of prefixes to be sent to this peer</help> + <valueHelp> + <format>u32:1-4294967295</format> + <description>Prefix limit</description> + </valueHelp> + <constraint> + <validator name="numeric" argument="--range 1-4294967295"/> + </constraint> + </properties> +</leafNode> #include <include/bgp/afi-nexthop-self.xml.i> <leafNode name="remove-private-as"> <properties> |