diff options
| author | Balaji <balajig81@gmail.com> | 2015-03-16 16:55:26 +0000 |
|---|---|---|
| committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-05-26 15:25:14 +0000 |
| commit | 7ebe974831dbda1893cbf10b50dd1fe0da5bd056 (patch) | |
| tree | 8e692c4c03f5aee833035a4e964e5d2457f5d1d5 | |
| parent | 67320b26b516ac73e1f1f45bde525cef5f4113d1 (diff) | |
bgpd: Configured suppress value cannot be less than the reuse value in bgp dampening
RFC 2439, Section 4.2; the values pair up for hysteresis.
Signed-off-by: Balaji.G <balajig81@gmail.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit aa7dbb1067b7d02e1354fe1e5664ccb7d259d649)
| -rw-r--r-- | bgpd/bgp_route.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index c8781a85b1..6ca24af158 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -13530,6 +13530,14 @@ DEFUN (bgp_damp_set, } bgp = vty->index; + + if (suppress < reuse) + { + vty_out (vty, "Suppress value cannot be less than reuse value %s", + VTY_NEWLINE); + return 0; + } + return bgp_damp_enable (bgp, bgp_node_afi (vty), bgp_node_safi (vty), half, reuse, suppress, max); } |
