]> git.proxmox.com Git - mirror_frr.git/commit
staticd: fix distance processing
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 25 May 2021 12:49:46 +0000 (15:49 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 25 May 2021 12:50:54 +0000 (15:50 +0300)
commite1ea6b20dfa61a628b3b5144b23cfdb06942a0be
treecbdcfe57ed49d07525782883a05f2f983216e89b
parent7b4e9d3cfc47678fb44ce7ded38321be702e86be
staticd: fix distance processing

When the user adds the route + nexthop pair that already exists with a
different distance, we should replace it instead of adding a new one.

Likewise, when the user wants to delete the route + nexthop pair without
explicitly entering the distance, we should delete the route.

Fixes #8695.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
staticd/static_nb.h
staticd/static_vty.c