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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2018-03-16 18:38:25 -04:00
parent e7f96f7411
commit ad97d1c10a

View File

@ -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);