summaryrefslogtreecommitdiff
path: root/lib/distribute.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/distribute.c')
-rw-r--r--lib/distribute.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/distribute.c b/lib/distribute.c
index 79d7b18ff5..34ccfb4c70 100644
--- a/lib/distribute.c
+++ b/lib/distribute.c
@@ -349,8 +349,8 @@ DEFUN (no_distribute_list,
if (! ret)
{
- vty_outln (vty, "distribute list doesn't exist");
- return CMD_WARNING;
+ vty_out (vty, "distribute list doesn't exist\n");
+ return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;
}
@@ -393,9 +393,9 @@ config_show_distribute (struct vty *vty)
DISTRIBUTE_V6_OUT, has_print);
}
if (has_print)
- vty_out (vty, VTYNL);
+ vty_out (vty, "\n");
else
- vty_outln (vty, " not set");
+ vty_out (vty, " not set\n");
for (i = 0; i < disthash->size; i++)
for (mp = disthash->index[i]; mp; mp = mp->next)
@@ -414,9 +414,9 @@ config_show_distribute (struct vty *vty)
has_print = distribute_print(vty, dist->prefix, 1,
DISTRIBUTE_V6_OUT, has_print);
if (has_print)
- vty_out (vty, VTYNL);
+ vty_out (vty, "\n");
else
- vty_outln (vty, " nothing");
+ vty_out (vty, " nothing\n");
}
}
@@ -437,9 +437,9 @@ config_show_distribute (struct vty *vty)
DISTRIBUTE_V6_IN, has_print);
}
if (has_print)
- vty_out (vty, VTYNL);
+ vty_out (vty, "\n");
else
- vty_outln (vty, " not set");
+ vty_out (vty, " not set\n");
for (i = 0; i < disthash->size; i++)
for (mp = disthash->index[i]; mp; mp = mp->next)
@@ -458,9 +458,9 @@ config_show_distribute (struct vty *vty)
has_print = distribute_print(vty, dist->prefix, 1,
DISTRIBUTE_V6_IN, has_print);
if (has_print)
- vty_out (vty, VTYNL);
+ vty_out (vty, "\n");
else
- vty_outln (vty, " nothing");
+ vty_out (vty, " nothing\n");
}
}
return 0;
@@ -487,7 +487,7 @@ config_write_distribute (struct vty *vty)
if (dist->list[j]) {
output = j == DISTRIBUTE_V4_OUT || j == DISTRIBUTE_V6_OUT;
v6 = j == DISTRIBUTE_V6_IN || j == DISTRIBUTE_V6_OUT;
- vty_outln (vty, " %sdistribute-list %s %s %s",
+ vty_out (vty, " %sdistribute-list %s %s %s\n",
v6 ? "ipv6 " : "",
dist->list[j],
output ? "out" : "in",
@@ -499,7 +499,7 @@ config_write_distribute (struct vty *vty)
if (dist->prefix[j]) {
output = j == DISTRIBUTE_V4_OUT || j == DISTRIBUTE_V6_OUT;
v6 = j == DISTRIBUTE_V6_IN || j == DISTRIBUTE_V6_OUT;
- vty_outln (vty, " %sdistribute-list prefix %s %s %s",
+ vty_out (vty, " %sdistribute-list prefix %s %s %s\n",
v6 ? "ipv6 " : "",
dist->prefix[j],
output ? "out" : "in",