diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-05-26 20:30:51 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2021-05-27 15:01:43 +0200 |
commit | f419424174e446461c3961bcabca3705ff4ab71c (patch) | |
tree | 66f8434aadcf43a2027cabbba407ab6740c384fa /staticd | |
parent | Merge pull request #8616 from donaldsharp/pim_ordering (diff) | |
download | frr-f419424174e446461c3961bcabca3705ff4ab71c.tar.xz frr-f419424174e446461c3961bcabca3705ff4ab71c.zip |
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>
Diffstat (limited to 'staticd')
-rw-r--r-- | staticd/static_vty.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index 33a2728cd..5f32688c4 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -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); if (!dnode) { - vty_out(vty, - "%% Refusing to remove a non-existent route\n"); - return ret; + /* Silently return */ + return CMD_SUCCESS; } dnode = yang_get_subtree_with_no_sibling(dnode); |