diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-08-21 23:11:29 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-21 23:11:29 +0300 |
| commit | b52cc03cabe1f9fac9b6ac81544f90658eae1510 (patch) | |
| tree | 7f432b414f81335f98c41e7a0611d0038ccb3d62 | |
| parent | 3c9fb01d26d981924145fec68f445ef18bc00dd1 (diff) | |
| parent | 65c99282d224a0a8798c4285a90e47baefcaa8f2 (diff) | |
Merge pull request #9441 from wesleycoakley/staticd-warn-nonexistent-route
staticd: warn on attempted delete of non-existent route
| -rw-r--r-- | staticd/static_vty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c index ea09054a23..f16b40a23f 100644 --- a/staticd/static_vty.c +++ b/staticd/static_vty.c @@ -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; } |
