]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_area.c
Merge remote-tracking branch 'origin/stable/3.0'
[mirror_frr.git] / ospf6d / ospf6_area.c
index 7c66cbdc7f5a3ec9e970dbf0dec3d2aa6a460c10..2cd77ac42c45940321fb21ac672a49bad19fb214 100644 (file)
@@ -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)
 {