diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-09-20 20:14:38 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-09-21 13:27:50 -0300 |
| commit | 66af68454bbace3e11e0e3a6dd865f2046939487 (patch) | |
| tree | 4ce8748fbefafaca84aaa0d4bfea1057a9f99ee0 /lib/command_py.c | |
| parent | 844b3a8748cce00fdcc913d7ff89f181b7fd9dd1 (diff) | |
zebra: make rib_add() a simple wrapper for rib_add_multipath()
Both function were very similar, and as we know code duplication is not
good. As an example, in the past couple of weeks some fixes were made
on rib_add() but not on rib_add_multipath(), causing known bugs to still
exist in a different form.
Instead of merging the two functions into one, let's make rib_add()
call rib_add_multipath() with the appropriate parameters. This way we
remove the code duplication but still keep the easy-to-use rib_add()
function for single-path routes.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/command_py.c')
0 files changed, 0 insertions, 0 deletions
