summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-06-29 13:22:37 -0500
committerGitHub <noreply@github.com>2017-06-29 13:22:37 -0500
commitefd934cab078c715c5f647c19cebd8f85463b753 (patch)
tree313fa8bf14a7154db1cf285e5cc9dc7621f3fdc7 /lib/if.c
parent9e3b206d7c25902cd3917d8969f16d118c8fea91 (diff)
parent8e25c8ce2ff6718d3c1d6cb5b6df6409147570d6 (diff)
Merge pull request #746 from qlyoung/vty-outln
vty_outln()
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/if.c b/lib/if.c
index dc417f8e3c..d9b4544271 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -694,9 +694,9 @@ DEFUN (interface,
if ((sl = strlen(ifname)) > INTERFACE_NAMSIZ)
{
- vty_out (vty, "%% Interface name %s is invalid: length exceeds "
- "%d characters%s",
- ifname, INTERFACE_NAMSIZ, VTY_NEWLINE);
+ vty_outln (vty, "%% Interface name %s is invalid: length exceeds "
+ "%d characters",
+ ifname, INTERFACE_NAMSIZ);
return CMD_WARNING;
}
@@ -713,7 +713,7 @@ DEFUN (interface,
if (!ifp)
{
- vty_out (vty, "%% interface %s not in %s%s", ifname, vrfname, VTY_NEWLINE);
+ vty_outln (vty, "%% interface %s not in %s", ifname, vrfname);
return CMD_WARNING;
}
VTY_PUSH_CONTEXT (INTERFACE_NODE, ifp);
@@ -743,14 +743,14 @@ DEFUN_NOSH (no_interface,
if (ifp == NULL)
{
- vty_out (vty, "%% Interface %s does not exist%s", ifname, VTY_NEWLINE);
+ vty_out (vty, "%% Interface %s does not exist%s", ifname, VTYNL);
return CMD_WARNING;
}
if (CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE))
{
vty_out (vty, "%% Only inactive interfaces can be deleted%s",
- VTY_NEWLINE);
+ VTYNL);
return CMD_WARNING;
}
@@ -798,7 +798,7 @@ DEFUN (show_address,
if (p->family == AF_INET)
vty_out (vty, "%s/%d%s", inet_ntoa (p->u.prefix4), p->prefixlen,
- VTY_NEWLINE);
+ VTYNL);
}
}
return CMD_SUCCESS;
@@ -823,8 +823,8 @@ DEFUN (show_address_vrf_all,
if (!vrf->iflist || !listcount (vrf->iflist))
continue;
- vty_out (vty, "%sVRF %u%s%s", VTY_NEWLINE, vrf->vrf_id, VTY_NEWLINE,
- VTY_NEWLINE);
+ vty_out (vty, "%sVRF %u%s%s", VTYNL, vrf->vrf_id, VTYNL,
+ VTYNL);
for (ALL_LIST_ELEMENTS_RO (vrf->iflist, node, ifp))
{
@@ -834,7 +834,7 @@ DEFUN (show_address_vrf_all,
if (p->family == AF_INET)
vty_out (vty, "%s/%d%s", inet_ntoa (p->u.prefix4), p->prefixlen,
- VTY_NEWLINE);
+ VTYNL);
}
}
}