]> git.puffer.fish Git - matthieu/frr.git/commit
staticd: fix nexthop creation and installation
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 17 Feb 2021 11:19:40 +0000 (14:19 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 26 Feb 2021 11:34:09 +0000 (14:34 +0300)
commit49b079ef1e492e09c101afd2159c07c502da9232
treeeea4151445753620653838533168f7177ce89297
parent0077038e9177814900b3f4a5e24e11f016e78817
staticd: fix nexthop creation and installation

Currently, staticd creates a VRF for the nexthop it is trying to install.
Later, when this nexthop is deleted, the VRF stays in the system and can
not be deleted by the user because "no vrf" command doesn't work for this
VRF because it was not created through northbound code.

There is no need to create the VRF. Just set nh_vrf_id to VRF_UNKNOWN
when the VRF doesn't exist.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
staticd/static_nb_config.c
staticd/static_routes.c
staticd/static_vrf.c
staticd/static_vrf.h