summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorRenato Westphal <renato@openbsd.org>2017-06-03 23:45:23 +0200
committerGitHub <noreply@github.com>2017-06-03 23:45:23 +0200
commitb49f20e36d91a6103bf48f603f6d554dea83df3d (patch)
tree0c93c419b6201ce2638e8b4a52cd2e2c3ee2ba54 /ospfd
parentMerge pull request #646 from qlyoung/fix-ospf-timers (diff)
parentospfd: fix clear ip ospf interface cmd (diff)
downloadfrr-b49f20e36d91a6103bf48f603f6d554dea83df3d.tar.xz
frr-b49f20e36d91a6103bf48f603f6d554dea83df3d.zip
Merge pull request #663 from chiragshah6/pim_dev
ospfd: Fix ospf timers commands
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_vty.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index cded08d32..37fb2da9d 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -2205,7 +2205,7 @@ DEFUN (ospf_timers_min_ls_interval,
int idx_number = 4;
unsigned int interval;
- if (argc != 1)
+ if (argc < 5)
{
vty_out (vty, "Insufficient arguments%s", VTY_NEWLINE);
return CMD_WARNING;
@@ -2247,7 +2247,7 @@ DEFUN (ospf_timers_min_ls_arrival,
int idx_number = 3;
unsigned int arrival;
- if (argc != 1)
+ if (argc < 4)
{
vty_out (vty, "Insufficient arguments%s", VTY_NEWLINE);
return CMD_WARNING;
@@ -2292,7 +2292,7 @@ DEFUN (ospf_timers_throttle_spf,
int idx_number_3 = 5;
unsigned int delay, hold, max;
- if (argc != 3)
+ if (argc < 6)
{
vty_out (vty, "Insufficient arguments%s", VTY_NEWLINE);
return CMD_WARNING;
@@ -2335,7 +2335,7 @@ DEFUN (ospf_timers_lsa,
int idx_number = 3;
unsigned int minarrival;
- if (argc != 1)
+ if (argc < 4)
{
vty_out (vty, "Insufficient number of arguments%s", VTY_NEWLINE);
return CMD_WARNING;
@@ -9082,7 +9082,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);