From ad97d1c10af12cbfb45d0f5f3a6002738115fe12 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 16 Mar 2018 18:38:25 -0400 Subject: [PATCH] zebra: Allow duplicate entry of a route If a user enters a route inside a non kernel existant vrf: vrf BLOOP ip route 4.3.2.0/24 192.168.201.1 ! They should be able to enter it over and over and over and over and over no matter how futile it is. Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index ea4d1a9feb..d0e2529924 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -249,7 +249,11 @@ static int zebra_static_route_holdem(struct zebra_vrf *zvrf, return CMD_SUCCESS; } - assert(!"We should not have found a duplicate and not remove it"); + /* + * If a person enters the same line again + * we need to silently accept it + */ + return CMD_SUCCESS; } listnode_add_sort(static_list, shr); -- 2.39.5