mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #9441 from wesleycoakley/staticd-warn-nonexistent-route
staticd: warn on attempted delete of non-existent route
This commit is contained in:
commit
b52cc03cab
@ -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);
|
dnode = yang_dnode_get(vty->candidate_config->dnode, ab_xpath);
|
||||||
if (!dnode) {
|
if (!dnode) {
|
||||||
/* Silently return */
|
vty_out(vty,
|
||||||
|
"%% Refusing to remove a non-existent route\n");
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user