diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-21 03:10:57 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-06-29 17:31:28 +0000 |
| commit | 96ade3ed7716c89b8047a1c0ab3377985d461cf8 (patch) | |
| tree | 1c3061738c2c0027612b6cdb3e5d5eccb08587bf /zebra/router-id.c | |
| parent | 4d5f445750e01467898eee47796e80d808500d56 (diff) | |
*: use vty_outln
Saves 400 lines
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/router-id.c')
| -rw-r--r-- | zebra/router-id.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/zebra/router-id.c b/zebra/router-id.c index 318986c1b7..07caef7abe 100644 --- a/zebra/router-id.c +++ b/zebra/router-id.c @@ -202,14 +202,12 @@ router_id_write (struct vty *vty) if (zvrf->rid_user_assigned.u.prefix4.s_addr) { if (zvrf_id (zvrf) == VRF_DEFAULT) - vty_out (vty, "router-id %s%s", - inet_ntoa (zvrf->rid_user_assigned.u.prefix4), - VTY_NEWLINE); - else - vty_out (vty, "router-id %s vrf %s%s", - inet_ntoa (zvrf->rid_user_assigned.u.prefix4), - zvrf_name (zvrf), - VTY_NEWLINE); + vty_outln (vty, "router-id %s", + inet_ntoa(zvrf->rid_user_assigned.u.prefix4)); + else + vty_outln (vty, "router-id %s vrf %s", + inet_ntoa (zvrf->rid_user_assigned.u.prefix4), + zvrf_name(zvrf)); } } |
