]> git.puffer.fish Git - mirror/frr.git/commit
staticd: fix display of the "nexthop-vrf" parameter of static routes 7080/head
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 11 Sep 2020 00:27:48 +0000 (21:27 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 11 Sep 2020 18:13:22 +0000 (15:13 -0300)
commit0d0aacea9590bcd08aa4f6622b9f54dba1902250
tree2027acfdbbe80274d7aeb07deef422930402335a
parent406537cb703c652ec275ae7e824efb2009634837
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