From: Chirag Shah Date: Sat, 3 Jun 2017 05:52:41 +0000 (-0700) Subject: ospfd: fix clear ip ospf interface cmd X-Git-Tag: reindent-master-before~95^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F663%2Fhead;p=mirror%2Ffrr.git ospfd: fix clear ip ospf interface cmd clear ip ospf interface parsing issue, instead of arguement of interface "IFNAME" parsed. Signed-off-by: Chirag Shah --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index d987fef433..bcab2e90ff 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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);