summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_zebra.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_zebra.c')
-rw-r--r--ospf6d/ospf6_zebra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c
index ea36ceabdf..a30bef87b3 100644
--- a/ospf6d/ospf6_zebra.c
+++ b/ospf6d/ospf6_zebra.c
@@ -684,7 +684,7 @@ ospf6_distance_set (struct vty *vty, struct ospf6 *o,
if (ret == 0)
{
vty_outln (vty, "Malformed prefix");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
distance = atoi (distance_str);
@@ -732,14 +732,14 @@ ospf6_distance_unset (struct vty *vty, struct ospf6 *o,
if (ret == 0)
{
vty_outln (vty, "Malformed prefix");
- return CMD_WARNING;
+ return CMD_WARNING_CONFIG_FAILED;
}
rn = route_node_lookup (o->distance_table, (struct prefix *) &p);
if (!rn)
{
- vty_outln (vty, "Cant't find specified prefix");
- return CMD_WARNING;
+ vty_outln (vty, "Can't find specified prefix");
+ return CMD_WARNING_CONFIG_FAILED;
}
odistance = rn->info;