summaryrefslogtreecommitdiff
path: root/ripd/rip_interface.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 /ripd/rip_interface.c
parent625e016d14073dfefb69c0fa36cddb81fbe034ed (diff)
parent905c15079393987f8cfdd55c30e7e1a3248c8c48 (diff)
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 'ripd/rip_interface.c')
-rw-r--r--ripd/rip_interface.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index bff8a4ce2c..357856e1e8 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -1168,7 +1168,7 @@ static int
rip_passive_nondefault_set (struct vty *vty, const char *ifname)
{
if (rip_passive_nondefault_lookup (ifname) >= 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
vector_set (Vrip_passive_nondefault, strdup (ifname));
@@ -1185,7 +1185,7 @@ rip_passive_nondefault_unset (struct vty *vty, const char *ifname)
i = rip_passive_nondefault_lookup (ifname);
if (i < 0)
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
str = vector_slot (Vrip_passive_nondefault, i);
free (str);
@@ -1235,7 +1235,7 @@ DEFUN (rip_network,
{
vty_out (vty, "There is a same network configuration %s\n",
argv[idx_ipv4_word]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;
@@ -1265,7 +1265,7 @@ DEFUN (no_rip_network,
{
vty_out (vty, "Can't find network configuration %s\n",
argv[idx_ipv4_word]->arg);
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
return CMD_SUCCESS;
@@ -1287,7 +1287,7 @@ DEFUN (rip_neighbor,
if (ret <= 0)
{
vty_out (vty, "Please specify address by A.B.C.D\n");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
rip_neighbor_add (&p);
@@ -1312,7 +1312,7 @@ DEFUN (no_rip_neighbor,
if (ret <= 0)
{
vty_out (vty, "Please specify address by A.B.C.D\n");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
rip_neighbor_delete (&p);
@@ -1351,7 +1351,7 @@ DEFUN (ip_rip_receive_version,
break;
}
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
DEFUN (ip_rip_receive_version_1,
@@ -1422,7 +1422,7 @@ DEFUN (ip_rip_send_version,
ri->ri_send = RI_RIP_VERSION_2;
return CMD_SUCCESS;
}
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
DEFUN (ip_rip_send_version_1,
@@ -1535,7 +1535,7 @@ DEFUN (ip_rip_authentication_mode,
if (auth_type != RIP_AUTH_MD5)
{
vty_out (vty, "auth length argument only valid for md5\n");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
if (strmatch ("rfc", authlen))
ri->md5_auth_len = RIP_AUTH_MD5_SIZE;
@@ -1593,13 +1593,13 @@ DEFUN (ip_rip_authentication_string,
{
vty_out (vty,
"%% RIPv2 authentication string must be shorter than 16\n");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
if (ri->key_chain)
{
vty_out (vty, "%% key-chain configuration exists\n");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
if (ri->auth_str)
@@ -1652,7 +1652,7 @@ DEFUN (ip_rip_authentication_key_chain,
if (ri->auth_str)
{
vty_out (vty,"%% authentication string configuration exists\n");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
if (ri->key_chain)