mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 13:21:22 +00:00
staticd: return SUCCESS when deleting non-existent route
Return SUCCESS if trying to delete route that doesn't exist. This was always staticd's behavior before the northbound conversion. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
202af4abaa
commit
f419424174
@ -294,9 +294,8 @@ static int static_route_leak(struct vty *vty, const char *svrf,
|
|||||||
|
|
||||||
dnode = yang_dnode_get(vty->candidate_config->dnode, ab_xpath);
|
dnode = yang_dnode_get(vty->candidate_config->dnode, ab_xpath);
|
||||||
if (!dnode) {
|
if (!dnode) {
|
||||||
vty_out(vty,
|
/* Silently return */
|
||||||
"%% Refusing to remove a non-existent route\n");
|
return CMD_SUCCESS;
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dnode = yang_get_subtree_with_no_sibling(dnode);
|
dnode = yang_get_subtree_with_no_sibling(dnode);
|
||||||
|
Loading…
Reference in New Issue
Block a user