From: Don Slice Date: Tue, 29 Mar 2016 19:19:42 +0000 (+0000) Subject: zebra: Use vrf name instead of vrf-id for ipv6 static route configuration X-Git-Tag: frr-2.0-rc1~1030 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4a141882573009d61a16251118cf43bb0fdb255a;p=mirror%2Ffrr.git zebra: Use vrf name instead of vrf-id for ipv6 static route configuration 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 --- diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 5f4f49e430..35d7baeba5 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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);