From 439aa9fa39bc14628726a664bce6d163de132b60 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 2 May 2017 22:48:32 -0400 Subject: ospf6d: Fix 'no area .. range...' command The cli uplift had confused some parameters. Signed-off-by: Donald Sharp --- ospf6d/ospf6_area.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ospf6d') diff --git a/ospf6d/ospf6_area.c b/ospf6d/ospf6_area.c index 198526a0e..2b25585e6 100644 --- a/ospf6d/ospf6_area.c +++ b/ospf6d/ospf6_area.c @@ -523,6 +523,7 @@ DEFUN (no_area_range, "Advertised metric for this range\n") { int idx_ipv4 = 2; + int idx_ipv6 = 4; int ret; struct ospf6_area *oa; struct prefix prefix; @@ -530,17 +531,17 @@ DEFUN (no_area_range, OSPF6_CMD_AREA_GET (argv[idx_ipv4]->arg, oa); - ret = str2prefix (argv[idx_ipv4]->arg, &prefix); + ret = str2prefix (argv[idx_ipv6]->arg, &prefix); if (ret != 1 || prefix.family != AF_INET6) { - vty_out (vty, "Malformed argument: %s%s", argv[idx_ipv4]->arg, VNL); + vty_out (vty, "Malformed argument: %s%s", argv[idx_ipv6]->arg, VNL); return CMD_SUCCESS; } range = ospf6_route_lookup (&prefix, oa->range_table); if (range == NULL) { - vty_out (vty, "Range %s does not exists.%s", argv[idx_ipv4]->arg, VNL); + vty_out (vty, "Range %s does not exists.%s", argv[idx_ipv6]->arg, VNL); return CMD_SUCCESS; } @@ -562,9 +563,6 @@ DEFUN (no_area_range, return CMD_SUCCESS; } - - - void ospf6_area_config_write (struct vty *vty) { -- cgit v1.2.3