summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-07-14 08:00:43 -0400
committerGitHub <noreply@github.com>2017-07-14 08:00:43 -0400
commit28bd1c1158c10268655878d12e5d8f17737de1bb (patch)
tree576ef3527922cd2a0fec59fadf1cff947e8f2079 /lib/if.c
parenteef83e96f7141c8b016462195e01b824c600c89e (diff)
parent28b672fcd33f328964c91f0a3d06cd904bddad42 (diff)
Merge pull request #813 from opensourcerouting/newline-redux
newline redux
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/if.c b/lib/if.c
index cea05643e7..8b64aef9a7 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -690,8 +690,8 @@ DEFUN (interface,
if ((sl = strlen(ifname)) > INTERFACE_NAMSIZ)
{
- vty_outln (vty, "%% Interface name %s is invalid: length exceeds "
- "%d characters",
+ vty_out (vty, "%% Interface name %s is invalid: length exceeds "
+ "%d characters\n",
ifname, INTERFACE_NAMSIZ);
return CMD_WARNING_CONFIG_FAILED;
}
@@ -709,7 +709,7 @@ DEFUN (interface,
if (!ifp)
{
- vty_outln (vty, "%% interface %s not in %s", ifname, vrfname);
+ vty_out (vty, "%% interface %s not in %s\n", ifname, vrfname);
return CMD_WARNING_CONFIG_FAILED;
}
VTY_PUSH_CONTEXT (INTERFACE_NODE, ifp);
@@ -739,14 +739,13 @@ DEFUN_NOSH (no_interface,
if (ifp == NULL)
{
- vty_out (vty, "%% Interface %s does not exist%s", ifname, VTYNL);
+ vty_out (vty, "%% Interface %s does not exist\n", ifname);
return CMD_WARNING_CONFIG_FAILED;
}
if (CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE))
{
- vty_out (vty, "%% Only inactive interfaces can be deleted%s",
- VTYNL);
+ vty_out (vty, "%% Only inactive interfaces can be deleted\n");
return CMD_WARNING_CONFIG_FAILED;
}
@@ -793,8 +792,7 @@ DEFUN (show_address,
p = ifc->address;
if (p->family == AF_INET)
- vty_out (vty, "%s/%d%s", inet_ntoa (p->u.prefix4), p->prefixlen,
- VTYNL);
+ vty_out (vty, "%s/%d\n", inet_ntoa (p->u.prefix4), p->prefixlen);
}
}
return CMD_SUCCESS;
@@ -819,8 +817,7 @@ DEFUN (show_address_vrf_all,
if (!vrf->iflist || !listcount (vrf->iflist))
continue;
- vty_out (vty, "%sVRF %u%s%s", VTYNL, vrf->vrf_id, VTYNL,
- VTYNL);
+ vty_out (vty, "\nVRF %u\n\n", vrf->vrf_id);
for (ALL_LIST_ELEMENTS_RO (vrf->iflist, node, ifp))
{
@@ -829,8 +826,7 @@ DEFUN (show_address_vrf_all,
p = ifc->address;
if (p->family == AF_INET)
- vty_out (vty, "%s/%d%s", inet_ntoa (p->u.prefix4), p->prefixlen,
- VTYNL);
+ vty_out (vty, "%s/%d\n", inet_ntoa (p->u.prefix4), p->prefixlen);
}
}
}