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/irdp_interface.c | |
| parent | 4d5f445750e01467898eee47796e80d808500d56 (diff) | |
*: use vty_outln
Saves 400 lines
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/irdp_interface.c')
| -rw-r--r-- | zebra/irdp_interface.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c index d3116fcf93..ca932ac43c 100644 --- a/zebra/irdp_interface.c +++ b/zebra/irdp_interface.c @@ -343,30 +343,29 @@ void irdp_config_write (struct vty *vty, struct interface *ifp) if(irdp->flags & IF_ACTIVE || irdp->flags & IF_SHUTDOWN) { if( irdp->flags & IF_SHUTDOWN) - vty_out (vty, " ip irdp shutdown %s", VTY_NEWLINE); + vty_outln (vty, " ip irdp shutdown "); if( irdp->flags & IF_BROADCAST) - vty_out (vty, " ip irdp broadcast%s", VTY_NEWLINE); + vty_outln (vty, " ip irdp broadcast"); else - vty_out (vty, " ip irdp multicast%s", VTY_NEWLINE); + vty_outln (vty, " ip irdp multicast"); - vty_out (vty, " ip irdp preference %ld%s", - irdp->Preference, VTY_NEWLINE); + vty_outln (vty, " ip irdp preference %ld", + irdp->Preference); for (ALL_LIST_ELEMENTS_RO (irdp->AdvPrefList, node, adv)) - vty_out (vty, " ip irdp address %s preference %d%s", + vty_outln (vty, " ip irdp address %s preference %d", inet_2a(adv->ip.s_addr, b1), - adv->pref, - VTY_NEWLINE); + adv->pref); - vty_out (vty, " ip irdp holdtime %d%s", - irdp->Lifetime, VTY_NEWLINE); + vty_outln (vty, " ip irdp holdtime %d", + irdp->Lifetime); - vty_out (vty, " ip irdp minadvertinterval %ld%s", - irdp->MinAdvertInterval, VTY_NEWLINE); + vty_outln (vty, " ip irdp minadvertinterval %ld", + irdp->MinAdvertInterval); - vty_out (vty, " ip irdp maxadvertinterval %ld%s", - irdp->MaxAdvertInterval, VTY_NEWLINE); + vty_outln (vty, " ip irdp maxadvertinterval %ld", + irdp->MaxAdvertInterval); } } @@ -479,8 +478,8 @@ DEFUN (ip_irdp_minadvertinterval, return CMD_SUCCESS; } else { - vty_out (vty, "%% MinAdvertInterval must be less than or equal to " - "MaxAdvertInterval%s", VTY_NEWLINE); + vty_outln (vty, "%% MinAdvertInterval must be less than or equal to " + "MaxAdvertInterval"); return CMD_WARNING; } } @@ -506,8 +505,8 @@ DEFUN (ip_irdp_maxadvertinterval, return CMD_SUCCESS; } else { - vty_out (vty, "%% MaxAdvertInterval must be greater than or equal to " - "MinAdvertInterval%s", VTY_NEWLINE); + vty_outln (vty, "%% MaxAdvertInterval must be greater than or equal to " + "MinAdvertInterval"); return CMD_WARNING; } } |
