staticd: warn on attempted delete of non-existent route

Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
This commit is contained in:
Wesley Coakley 2020-12-14 20:01:24 -05:00
parent a7279c5f43
commit 65c99282d2
No known key found for this signature in database
GPG Key ID: 1812D90223E9C96D

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;
}