mirror_frr/ripd
Lu Feng 8478ae7ef3 ripd: allow to enable/disable the ECMP feature
Introduce a new command "[no] allow-ecmp" to enable/disable the
ECMP feature in RIP. By default, ECMP is not allowed.

Once ECMP is disabled, only one route entry can exist in the list.

* rip_zebra.c: adjust a debugging information, which shows the number
               of nexthops according to whether ECMP is enabled.
* ripd.c: rip_ecmp_add() will reject the new route if ECMP is not
          allowed and some entry already exists.
          A new configurable command "allow-ecmp" is added to control
          whether ECMP is allowed.
          When ECMP is disabled, rip_ecmp_disable() is called to
          remove the multiple nexthops.
* ripd.h: Add a new member "ecmp" to "struct rip", indicating whether
          ECMP is allowed or not.

Signed-off-by: Feng Lu <lu.feng@6wind.com>
Reviewed-by: Alain Ritoux <alain.ritoux@6wind.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 0b74a0a5db7bcf65bf68c44b547b02b1310b5cdb)
2016-05-26 17:12:05 +00:00
..
.gitignore [administrivia] Update gitignore files 2008-08-22 20:02:08 +01:00
Makefile.am build: Remove the old PIC/PIE patch, let libtool sort it out 2016-05-25 20:38:35 -04:00
rip_debug.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
rip_debug.h ripd: resolve debug statements issue (bug 442) 2011-02-24 13:52:14 +03:00
rip_interface.c ripd: add ECMP support 2016-05-26 17:11:05 +00:00
rip_interface.h *: add VRF ID in the API message header 2015-11-03 22:04:36 -08:00
rip_main.c quagga: Fixup startup to allow consistency between sysV and systemd 2016-04-27 16:04:48 -04:00
rip_offset.c [cleanup] Convert XMALLOC/memset to XCALLOC 2009-06-12 17:07:49 +01:00
rip_peer.c *: nuke ^L (page feed) 2014-06-04 06:58:02 +02:00
rip_routemap.c When a route-map configuration is used to set the nexthop to a value, make 2015-06-11 09:19:59 -07:00
rip_snmp.c snmp: fix warnings 2016-05-26 15:33:29 +00:00
rip_zebra.c ripd: allow to enable/disable the ECMP feature 2016-05-26 17:12:05 +00:00
ripd.c ripd: allow to enable/disable the ECMP feature 2016-05-26 17:12:05 +00:00
ripd.conf.sample Initial revision 2002-12-13 20:15:29 +00:00
ripd.h ripd: allow to enable/disable the ECMP feature 2016-05-26 17:12:05 +00:00
RIPv2-MIB.txt Initial revision 2002-12-13 20:15:29 +00:00