summaryrefslogtreecommitdiff
path: root/zebra/irdp_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/irdp_interface.c')
-rw-r--r--zebra/irdp_interface.c35
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;
}
}