diff options
author | Wesley Coakley <wcoakley@nvidia.com> | 2020-12-15 02:01:24 +0100 |
---|---|---|
committer | Wesley Coakley <wcoakley@nvidia.com> | 2021-08-19 02:28:41 +0200 |
commit | 65c99282d224a0a8798c4285a90e47baefcaa8f2 (patch) | |
tree | d17202176af7e2a2263ec28457e622be520da4e7 /staticd | |
parent | Merge pull request #9431 from opensourcerouting/snap-1804-master (diff) | |
download | frr-65c99282d224a0a8798c4285a90e47baefcaa8f2.tar.xz frr-65c99282d224a0a8798c4285a90e47baefcaa8f2.zip |
staticd: warn on attempted delete of non-existent route
Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
Diffstat (limited to 'staticd')
-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 ea09054a2..f16b40a23 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; } |