From 4a141882573009d61a16251118cf43bb0fdb255a Mon Sep 17 00:00:00 2001 From: Don Slice Date: Tue, 29 Mar 2016 19:19:42 +0000 Subject: [PATCH] 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 --- zebra/zebra_vty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5