]> 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>
Wed, 17 Feb 2021 11:19:40 +0000 (14:19 +0300)
commiteec2baa01a37162cfc7a8c319d43a9f9111eb276
tree5af19ed85a80e829c9f9530c5ae85c514c9e0102
parentddd455157e0a390601ecdfd1db0880ec34974965
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