summaryrefslogtreecommitdiff
path: root/staticd/static_vty.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@users.noreply.github.com>2021-03-05 11:22:47 +0000
committerGitHub <noreply@github.com>2021-03-05 11:22:47 +0000
commitee56932473df1da8fb58260711ad27cc618d108d (patch)
treee2da059cb44f560c3d284f91318c172012553ba3 /staticd/static_vty.c
parentddbc1b4dd9775ea23759a684bb582ce8409abb8b (diff)
parent23f3a92e348207a22c58669971bb135f75aecaf7 (diff)
Merge pull request #8165 from wesleycoakley/misc-qol-fixups
staticd, pimd, tests: small fixups and cov fix
Diffstat (limited to 'staticd/static_vty.c')
-rw-r--r--staticd/static_vty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/staticd/static_vty.c b/staticd/static_vty.c
index 1488cc1775..dd03f83778 100644
--- a/staticd/static_vty.c
+++ b/staticd/static_vty.c
@@ -294,8 +294,11 @@ static int static_route_leak(struct vty *vty, const char *svrf,
buf_gate_str, ifname);
dnode = yang_dnode_get(vty->candidate_config->dnode, ab_xpath);
- if (!dnode)
+ if (!dnode) {
+ vty_out(vty,
+ "%% Refusing to remove a non-existent route\n");
return ret;
+ }
dnode = yang_get_subtree_with_no_sibling(dnode);
assert(dnode);