ospfd: fix clear ip ospf interface cmd

clear ip ospf interface <IFNAME> parsing issue,
instead of arguement of interface "IFNAME" parsed.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2017-06-02 22:52:41 -07:00
parent 3ba2603926
commit fac05f2fd6

View 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);