From 65c99282d224a0a8798c4285a90e47baefcaa8f2 Mon Sep 17 00:00:00 2001 From: Wesley Coakley Date: Mon, 14 Dec 2020 20:01:24 -0500 Subject: [PATCH] staticd: warn on attempted delete of non-existent route Signed-off-by: Wesley Coakley --- staticd/static_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }