summaryrefslogtreecommitdiff
path: root/lib/routemap.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-06-16 22:43:56 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-06-17 00:49:15 +0000
commit58b0878ac63dfd80ea79848458ef31490307547e (patch)
tree10f6fc81b9e90f6e9b0403cde467dbb8d6e17cc2 /lib/routemap.c
parent98f224ef22bc9ec22b8be51756ae12e7740cbd5a (diff)
ospfd: fix route-map brokenness
ospf redefines the standard route map commands which causes ambiguity issues in the CLI parser, it also uses a signed integer to hold an unsigned quantity leading to weirdness when specifying metrics larger than 2,147,483,647 Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 17f25334a7..f90866194c 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -522,7 +522,7 @@ generic_match_add (struct vty *vty, struct route_map_index *index,
{
case RMAP_RULE_MISSING:
vty_out (vty, "%% [%s] Can't find rule.%s", frr_protonameinst,
- VTY_NEWLINE);
+ VTY_NEWLINE);
return CMD_WARNING;
case RMAP_COMPILE_ERROR:
vty_out (vty, "%% [%s] Argument form is unsupported or malformed.%s",
@@ -570,7 +570,7 @@ generic_match_delete (struct vty *vty, struct route_map_index *index,
{
case RMAP_RULE_MISSING:
vty_out (vty, "%% [%s] Can't find rule.%s", frr_protonameinst,
- VTY_NEWLINE);
+ VTY_NEWLINE);
break;
case RMAP_COMPILE_ERROR:
vty_out (vty, "%% [%s] Argument form is unsupported or malformed.%s",
@@ -608,7 +608,7 @@ generic_set_add (struct vty *vty, struct route_map_index *index,
{
case RMAP_RULE_MISSING:
vty_out (vty, "%% [%s] Can't find rule.%s", frr_protonameinst,
- VTY_NEWLINE);
+ VTY_NEWLINE);
return CMD_WARNING;
case RMAP_COMPILE_ERROR:
vty_out (vty, "%% [%s] Argument form is unsupported or malformed.%s",
@@ -632,7 +632,7 @@ generic_set_delete (struct vty *vty, struct route_map_index *index,
{
case RMAP_RULE_MISSING:
vty_out (vty, "%% [%s] Can't find rule.%s", frr_protonameinst,
- VTY_NEWLINE);
+ VTY_NEWLINE);
return CMD_WARNING;
case RMAP_COMPILE_ERROR:
vty_out (vty, "%% [%s] Argument form is unsupported or malformed.%s",