]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Use vrf name instead of vrf-id for ipv6 static route configuration
authorDon Slice <dslice@cumulusnetworks.com>
Tue, 29 Mar 2016 19:19:42 +0000 (19:19 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Tue, 29 Mar 2016 19:19:42 +0000 (19:19 +0000)
Changed output of the "ipv6 route ... vrf red" to display and store with the
vrf name instead of the vrf_id, since the vrf_id would disappear on reboot
or quagga restart.

Ticket: CM-10126
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
zebra/zebra_vty.c

index 5f4f49e430668e53b352d7b06b00bba71c1fb97e..35d7baeba5e7429598ab0d6dc66ad4086185db81 100644 (file)
@@ -5507,7 +5507,10 @@ static_config_ipv6 (struct vty *vty)
               vty_out (vty, " %d", si->distance);
 
             if (si->vrf_id != VRF_DEFAULT)
-              vty_out (vty, " vrf %u", si->vrf_id);
+              {
+                zvrf = vrf_info_lookup (si->vrf_id);
+                vty_out (vty, " vrf %s", zvrf->name);
+              }
 
             vty_out (vty, "%s", VTY_NEWLINE);