]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: display_vrf_name_on_interface
authorDon Slice <dslice@cumulusnetworks.com>
Thu, 4 Feb 2016 15:41:11 +0000 (07:41 -0800)
committerDon Slice <dslice@cumulusnetworks.com>
Thu, 4 Feb 2016 17:05:00 +0000 (09:05 -0800)
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

index d7499a0cb405aed6f7993cc84e5ca97be03f16bc..051b116b9bf1206eaa1adfcc25dd6e65280d33dc 100644 (file)
@@ -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,