]> git.puffer.fish Git - mirror/frr.git/commit
staticd: fix display of the "nexthop-vrf" parameter of static routes
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 11 Sep 2020 00:27:48 +0000 (21:27 -0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:24 +0000 (15:54 +0300)
commit5db53311ecd358b094c80641e281c0bd78f0f07b
treedd18913849590c167db853086a184ea46a1c4ab4
parent4e57880eb5cb46179c6b7c492505d3a761a70ba0
staticd: fix display of the "nexthop-vrf" parameter of static routes

When the static route VRF and its nexthop VRF are inactive in the
kernel, both VRFs will have the same ID (VRF_UNKNOWN) even though
they might not be the same. This can cause "sh run" to not display
the "nexthop-vrf" parameter correctly when necessary. Change the
code to compare VRFs by their names to fix this problem.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
staticd/static_vty.c