summaryrefslogtreecommitdiffstats
path: root/babeld/babel_zebra.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-21 05:10:57 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-29 19:31:28 +0200
commit96ade3ed7716c89b8047a1c0ab3377985d461cf8 (patch)
tree1c3061738c2c0027612b6cdb3e5d5eccb08587bf /babeld/babel_zebra.c
parentlib: add vty_outln() (diff)
downloadfrr-96ade3ed7716c89b8047a1c0ab3377985d461cf8.tar.xz
frr-96ade3ed7716c89b8047a1c0ab3377985d461cf8.zip
*: use vty_outln
Saves 400 lines Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'babeld/babel_zebra.c')
-rw-r--r--babeld/babel_zebra.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/babeld/babel_zebra.c b/babeld/babel_zebra.c
index f54f5b346..d8b8919e2 100644
--- a/babeld/babel_zebra.c
+++ b/babeld/babel_zebra.c
@@ -222,7 +222,7 @@ DEFUN (babel_redistribute_type,
type = babel_proto_redistnum(argv[1]->arg);
if (type < 0) {
- vty_out(vty, "Invalid type %s%s", argv[1]->arg, VTY_NEWLINE);
+ vty_outln (vty, "Invalid type %s", argv[1]->arg);
return CMD_WARNING;
}
@@ -243,7 +243,7 @@ DEFUN (no_babel_redistribute_type,
type = babel_proto_redistnum(argv[2]->arg);
if (type < 0) {
- vty_out(vty, "Invalid type %s%s", argv[2]->arg, VTY_NEWLINE);
+ vty_outln (vty, "Invalid type %s", argv[2]->arg);
return CMD_WARNING;
}
@@ -277,7 +277,7 @@ DEFUN (debug_babel,
}
}
- vty_out(vty, "Invalid type %s%s", argv[2]->arg, VTY_NEWLINE);
+ vty_outln (vty, "Invalid type %s", argv[2]->arg);
return CMD_WARNING;
}
@@ -307,7 +307,7 @@ DEFUN (no_debug_babel,
}
}
- vty_out(vty, "Invalid type %s%s", argv[3]->arg, VTY_NEWLINE);
+ vty_outln (vty, "Invalid type %s", argv[3]->arg);
return CMD_WARNING;
}
@@ -324,7 +324,7 @@ debug_babel_config_write (struct vty * vty)
if (debug == BABEL_DEBUG_ALL)
{
- vty_out (vty, "debug babel all%s", VTY_NEWLINE);
+ vty_outln (vty, "debug babel all");
lines++;
}
else
@@ -335,12 +335,12 @@ debug_babel_config_write (struct vty * vty)
&& CHECK_FLAG (debug, debug_type[i].type)
)
{
- vty_out (vty, "debug babel %s%s", debug_type[i].str, VTY_NEWLINE);
+ vty_outln (vty, "debug babel %s", debug_type[i].str);
lines++;
}
if (lines)
{
- vty_out (vty, "!%s", VTY_NEWLINE);
+ vty_outln (vty, "!");
lines++;
}
return lines;
@@ -384,13 +384,13 @@ zebra_config_write (struct vty *vty)
{
if (! zclient->enable)
{
- vty_out (vty, "no router zebra%s", VTY_NEWLINE);
+ vty_outln (vty, "no router zebra");
return 1;
}
else if (! vrf_bitmap_check (zclient->redist[AFI_IP][ZEBRA_ROUTE_BABEL], VRF_DEFAULT))
{
- vty_out (vty, "router zebra%s", VTY_NEWLINE);
- vty_out (vty, " no redistribute babel%s", VTY_NEWLINE);
+ vty_outln (vty, "router zebra");
+ vty_outln (vty, " no redistribute babel");
return 1;
}
return 0;