]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Use vrf name instead of vrf-id for router-id definition
authorDon Slice <dslice@cumulusnetworks.com>
Tue, 29 Mar 2016 19:43:57 +0000 (19:43 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Tue, 29 Mar 2016 19:43:57 +0000 (19:43 +0000)
Changed display/saving of global router-id to use the vrf name instead
of the vrf_id, since the vrf_id would get lost on quagga restart or
reboot.

Ticket: CM-10106
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
zebra/router-id.c

index 3277dd17802c6e48e51d83bf8c8ad9eb57d9022f..968fbc677d3a7e76fa917fb00f598ae8e45ba666 100644 (file)
@@ -206,9 +206,9 @@ router_id_write (struct vty *vty)
                      inet_ntoa (zvrf->rid_user_assigned.u.prefix4),
                      VTY_NEWLINE);
           else
-            vty_out (vty, "router-id %s vrf %u%s",
+            vty_out (vty, "router-id %s vrf %s%s",
                      inet_ntoa (zvrf->rid_user_assigned.u.prefix4),
-                     zvrf->vrf_id,
+                     zvrf->name,
                      VTY_NEWLINE);
         }
 }