summaryrefslogtreecommitdiffstats
path: root/isisd/isis_redist.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-14 13:07:30 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-14 13:07:30 +0200
commit2d8270596a085e7a815cebaea21e17cba9e26111 (patch)
treef9a559f654e7d704ecacc9dadedbe01868615610 /isisd/isis_redist.c
parent*: remove VTYNL, part 6 of 6 (diff)
parentMerge pull request #815 from dwalton76/CMD_WARNING_take2 (diff)
downloadfrr-2d8270596a085e7a815cebaea21e17cba9e26111.tar.xz
frr-2d8270596a085e7a815cebaea21e17cba9e26111.zip
Merge remote-tracking branch 'frr/master' into newline-redux
Lots of conflicts from CMD_WARNING_CONFIG_FAILED... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_redist.c')
-rw-r--r--isisd/isis_redist.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c
index 9846686ef..b3f29fd20 100644
--- a/isisd/isis_redist.c
+++ b/isisd/isis_redist.c
@@ -581,27 +581,27 @@ DEFUN (isis_redistribute,
family = str2family(argv[idx_afi]->text);
if (family < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
afi = family2afi(family);
if (!afi)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
type = proto_redistnum(afi, argv[idx_protocol]->text);
if (type < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
if (!strcmp("level-1", argv[idx_level]->arg))
level = 1;
else if (!strcmp("level-2", argv[idx_level]->arg))
level = 2;
else
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
if ((area->is_type & level) != level)
{
vty_out (vty, "Node is not a level-%d IS\n", level);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
metric = 0xffffffff;
@@ -610,7 +610,7 @@ DEFUN (isis_redistribute,
if (argc > idx_metric_rmap + 1)
{
if (argv[idx_metric_rmap + 1]->arg[0] == '\0')
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
if (strmatch(argv[idx_metric_rmap]->text, "metric"))
{
@@ -618,7 +618,7 @@ DEFUN (isis_redistribute,
metric = strtoul(argv[idx_metric_rmap + 1]->arg, &endp, 10);
if (*endp != '\0')
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
else
{
@@ -652,15 +652,15 @@ DEFUN (no_isis_redistribute,
family = str2family(argv[idx_afi]->arg);
if (family < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
afi = family2afi(family);
if (!afi)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
type = proto_redistnum(afi, argv[idx_protocol]->text);
if (type < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
level = strmatch ("level-1", argv[idx_level]->text) ? 1 : 2;
@@ -696,14 +696,14 @@ DEFUN (isis_default_originate,
family = str2family(argv[idx_afi]->text);
if (family < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
level = strmatch ("level-1", argv[idx_level]->text) ? 1 : 2;
if ((area->is_type & level) != level)
{
vty_out (vty, "Node is not a level-%d IS\n", level);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
if (argc > idx_always && strmatch (argv[idx_always]->text, "always"))
@@ -750,14 +750,14 @@ DEFUN (no_isis_default_originate,
family = str2family(argv[idx_afi]->text);
if (family < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
if (strmatch ("level-1", argv[idx_level]->text))
level = 1;
else if (strmatch ("level-2", argv[idx_level]->text))
level = 2;
else
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
isis_redist_unset(area, level, family, DEFAULT_ROUTE);
return 0;