From e6a59b35055cbff52915e292bd7da156aee03787 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Thu, 4 Feb 2016 07:41:11 -0800 Subject: [PATCH] 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 --- zebra/interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.39.5