summaryrefslogtreecommitdiffstats
path: root/lib/if_rmap.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-09-23 23:34:33 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-09-23 23:34:33 +0200
commitd862bffbda978e1292f80dbf482360dbb7176f58 (patch)
tree97cc6b51992e4012e9899e07e080ffdffd420c25 /lib/if_rmap.c
parentzebra: zebra_vty.c compiles (diff)
downloadfrr-d862bffbda978e1292f80dbf482360dbb7176f58.tar.xz
frr-d862bffbda978e1292f80dbf482360dbb7176f58.zip
lib: lib compiles
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/if_rmap.c')
-rw-r--r--lib/if_rmap.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c
index 070d55d4b..2afb08c7c 100644
--- a/lib/if_rmap.c
+++ b/lib/if_rmap.c
@@ -209,16 +209,6 @@ if_rmap_unset (const char *ifname, enum if_rmap_type type,
return 1;
}
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "route-map RMAP_NAME (in|out) IFNAME",
- * "Route map set\n"
- * "Route map name\n"
- * "Route map set for input filtering\n"
- * "Route map set for output filtering\n"
- * "Route map interface name\n"
- *
- */
DEFUN (if_rmap,
if_rmap_cmd,
"route-map RMAP_NAME <in|out> IFNAME",
@@ -233,9 +223,9 @@ DEFUN (if_rmap,
int idx_ifname = 3;
enum if_rmap_type type;
- if (strncmp (argv[idx_in_out]->arg, "i", 1) == 0)
+ if (strncmp (argv[idx_in_out]->text, "in", 1) == 0)
type = IF_RMAP_IN;
- else if (strncmp (argv[idx_in_out]->arg, "o", 1) == 0)
+ else if (strncmp (argv[idx_in_out]->text, "out", 1) == 0)
type = IF_RMAP_OUT;
else
{
@@ -248,18 +238,6 @@ DEFUN (if_rmap,
return CMD_SUCCESS;
}
-
-/*
- * CHECK ME - The following ALIASes need to be implemented in this DEFUN
- * "no route-map ROUTEMAP_NAME (in|out) IFNAME",
- * NO_STR
- * "Route map unset\n"
- * "Route map name\n"
- * "Route map for input filtering\n"
- * "Route map for output filtering\n"
- * "Route map interface name\n"
- *
- */
DEFUN (no_if_rmap,
no_if_rmap_cmd,
"no route-map ROUTEMAP_NAME <in|out> IFNAME",