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
This commit is contained in:
Don Slice 2016-03-29 19:43:57 +00:00
parent 4a14188257
commit 1d75f88306

View File

@ -206,9 +206,9 @@ router_id_write (struct vty *vty)
inet_ntoa (zvrf->rid_user_assigned.u.prefix4), inet_ntoa (zvrf->rid_user_assigned.u.prefix4),
VTY_NEWLINE); VTY_NEWLINE);
else 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), inet_ntoa (zvrf->rid_user_assigned.u.prefix4),
zvrf->vrf_id, zvrf->name,
VTY_NEWLINE); VTY_NEWLINE);
} }
} }