diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-03 04:48:32 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-16 14:28:58 +0200 |
commit | 439aa9fa39bc14628726a664bce6d163de132b60 (patch) | |
tree | c9f06098238f01eb7b00a7ba8815a57f90da7d8f /ospf6d/ospf6_area.c | |
parent | snapcraft: fix minor typo (diff) | |
download | frr-439aa9fa39bc14628726a664bce6d163de132b60.tar.xz frr-439aa9fa39bc14628726a664bce6d163de132b60.zip |
ospf6d: Fix 'no area .. range...' command
The cli uplift had confused some parameters.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_area.c')
-rw-r--r-- | ospf6d/ospf6_area.c | 10 |
1 files changed, 4 insertions, 6 deletions
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) { |