Merge pull request #9441 from wesleycoakley/staticd-warn-nonexistent-route

staticd: warn on attempted delete of non-existent route
This commit is contained in:
Igor Ryzhov 2021-08-21 23:11:29 +03:00 committed by GitHub
commit b52cc03cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +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) {
/* Silently return */
vty_out(vty,
"%% Refusing to remove a non-existent route\n");
return CMD_SUCCESS;
}