summaryrefslogtreecommitdiffstats
path: root/lib/if_rmap.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 02:58:26 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 02:58:26 +0200
commit6f1ccc12de0bb09560106ac7c1354ec627d97b48 (patch)
tree758ecc75e4e66cc5f29937958a7f6058d9e95874 /lib/if_rmap.c
parentospf6d: argv update (diff)
downloadfrr-6f1ccc12de0bb09560106ac7c1354ec627d97b48.tar.xz
frr-6f1ccc12de0bb09560106ac7c1354ec627d97b48.zip
lib: argv update for filter.c, if_rmap.c keychain.c and plist.c
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/if_rmap.c')
-rw-r--r--lib/if_rmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/if_rmap.c b/lib/if_rmap.c
index 736f2e237..0e1199f21 100644
--- a/lib/if_rmap.c
+++ b/lib/if_rmap.c
@@ -220,9 +220,9 @@ DEFUN (if_rmap,
{
enum if_rmap_type type;
- if (strncmp (argv[1], "i", 1) == 0)
+ if (strncmp (argv[2]->arg, "i", 1) == 0)
type = IF_RMAP_IN;
- else if (strncmp (argv[1], "o", 1) == 0)
+ else if (strncmp (argv[2]->arg, "o", 1) == 0)
type = IF_RMAP_OUT;
else
{
@@ -230,7 +230,7 @@ DEFUN (if_rmap,
return CMD_WARNING;
}
- if_rmap_set (argv[2], type, argv[0]);
+ if_rmap_set (argv[3]->arg, type, argv[1]->arg);
return CMD_SUCCESS;
}
@@ -257,9 +257,9 @@ DEFUN (no_if_rmap,
int ret;
enum if_rmap_type type;
- if (strncmp (argv[1], "i", 1) == 0)
+ if (strncmp (argv[3]->arg, "i", 1) == 0)
type = IF_RMAP_IN;
- else if (strncmp (argv[1], "o", 1) == 0)
+ else if (strncmp (argv[3]->arg, "o", 1) == 0)
type = IF_RMAP_OUT;
else
{
@@ -267,7 +267,7 @@ DEFUN (no_if_rmap,
return CMD_WARNING;
}
- ret = if_rmap_unset (argv[2], type, argv[0]);
+ ret = if_rmap_unset (argv[4]->arg, type, argv[2]->arg);
if (! ret)
{
vty_out (vty, "route-map doesn't exist%s", VTY_NEWLINE);