From: Don Slice Date: Thu, 4 Feb 2016 15:41:11 +0000 (-0800) Subject: zebra: display_vrf_name_on_interface X-Git-Tag: frr-2.0-rc1~1139 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e6a59b35055cbff52915e292bd7da156aee03787;p=matthieu%2Ffrr.git zebra: display_vrf_name_on_interface Changed vrf output from vrf_id to vrf name in "show interface" Ticket: CM-9131 Reviewed By: sharpd Testing Done: Manual testing, see ticket --- diff --git a/zebra/interface.c b/zebra/interface.c index d7499a0cb4..051b116b9b 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -936,6 +936,7 @@ if_dump_vty (struct vty *vty, struct interface *ifp) struct listnode *node; struct route_node *rn; struct zebra_if *zebra_if; + struct vrf *vrf; zebra_if = ifp->info; @@ -957,7 +958,8 @@ if_dump_vty (struct vty *vty, struct interface *ifp) zebra_ptm_show_status(vty, ifp); - vty_out (vty, " vrf: %u%s", ifp->vrf_id, VTY_NEWLINE); + vrf = vrf_lookup(ifp->vrf_id); + vty_out (vty, " vrf: %s%s", vrf->name, VTY_NEWLINE); if (ifp->desc) vty_out (vty, " Description: %s%s", ifp->desc,