diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-17 14:51:25 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-17 14:51:25 +0200 |
commit | 934ec54171eb067277a46427acd96b4c3cfde2c1 (patch) | |
tree | bba15d3b6cf98d978037f83ab13686475e985aa8 /ospf6d/ospf6_area.c | |
parent | Merge remote-tracking branch 'origin/stable/2.0' (diff) | |
parent | bgpd: Fix vrf crash (diff) | |
download | frr-934ec54171eb067277a46427acd96b4c3cfde2c1.tar.xz frr-934ec54171eb067277a46427acd96b4c3cfde2c1.zip |
Merge remote-tracking branch 'origin/stable/3.0'
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 7c66cbdc7..2cd77ac42 100644 --- a/ospf6d/ospf6_area.c +++ b/ospf6d/ospf6_area.c @@ -522,6 +522,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; @@ -529,17 +530,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; } @@ -561,9 +562,6 @@ DEFUN (no_area_range, return CMD_SUCCESS; } - - - void ospf6_area_config_write (struct vty *vty) { |