]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: fix clear ip ospf interface cmd 663/head
authorChirag Shah <chirag@cumulusnetworks.com>
Sat, 3 Jun 2017 05:52:41 +0000 (22:52 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Sat, 3 Jun 2017 05:52:41 +0000 (22:52 -0700)
clear ip ospf interface <IFNAME> parsing issue,
instead of arguement of interface "IFNAME" parsed.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
ospfd/ospf_vty.c

index d987fef433b2f9c43e38a4571a32aae46ef043fc..bcab2e90ffa9021576979012a52fd831976f7e44 100644 (file)
@@ -9099,7 +9099,7 @@ DEFUN (clear_ip_ospf_interface,
     }
   else /* Interface name is specified. */
     {
-      if ((ifp = if_lookup_by_name (argv[idx_ifname]->text, VRF_DEFAULT)) == NULL)
+      if ((ifp = if_lookup_by_name (argv[idx_ifname]->arg, VRF_DEFAULT)) == NULL)
         vty_out (vty, "No such interface name%s", VTY_NEWLINE);
       else
         ospf_interface_clear(ifp);