]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix show ip route vrf X summary 7646/head
authorEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 1 Dec 2020 17:24:46 +0000 (18:24 +0100)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 1 Dec 2020 17:34:05 +0000 (18:34 +0100)
commit265ac74a87a8fe97ac4a792da1b45eadd779864e
tree00eaf08d9e2086c83ab8149cd1bfc8b1df9c7279
parent5c1a899432d4efdea247f584d45a84351ff77a3a
zebra: fix show ip route vrf X summary

The lookup for non default VRFs was always using a tableId; if not
provided, we were defaulting to RT_TABLE_MAIN. This is fine for the
default VRF but not for others. As a result, the command was silently
failing for non-default VRFs unless we also specified the correct tableId.

Fix this by only performing the lookup using the tableId if it is
provided; else use zebra_vrf_table.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
zebra/zebra_vty.c