Merge pull request #8740 from mjstapp/fix_static_ret

staticd: return meaningful status in cli error path
This commit is contained in:
Igor Ryzhov 2021-05-28 11:35:43 +03:00 committed by GitHub
commit bf59f4ad20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,9 +325,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);