summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-03-29 19:43:57 +0000
committerDon Slice <dslice@cumulusnetworks.com>2016-03-29 19:43:57 +0000
commit1d75f88306ee450c4a3b4f4d68060e189d3a37e9 (patch)
treefe287138e9090cc795c1bf07c56b41ae50e5ea6f
parent4a141882573009d61a16251118cf43bb0fdb255a (diff)
zebra: Use vrf name instead of vrf-id for router-id definition
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
-rw-r--r--zebra/router-id.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c
index 3277dd1780..968fbc677d 100644
--- a/zebra/router-id.c
+++ b/zebra/router-id.c
@@ -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);
}
}