Skip to content

Commit

Permalink
ospfd: increase max write-muliplier to 1000000
Browse files Browse the repository at this point in the history
Increase the max configurable value of write-multiplier
from 100 to 1000000.

Issue: 3172525
Testing Done: Manual, ospf-smoke

Signed-off-by: Trey Aspelund <taspelund@nvidia.com>
  • Loading branch information
Trey Aspelund authored and donaldsharp committed Jan 3, 2025
1 parent 5800f6c commit ac41ba0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -2649,7 +2649,7 @@ DEFUN (no_ospf_auto_cost_reference_bandwidth,

DEFUN (ospf_write_multiplier,
ospf_write_multiplier_cmd,
"ospf write-multiplier (1-100)",
"ospf write-multiplier (1-1000000)",
"OSPF specific commands\n"
"Write multiplier\n"
"Maximum number of interface serviced per write\n")
Expand All @@ -2664,7 +2664,7 @@ DEFUN (ospf_write_multiplier,
idx_number = 1;

write_oi_count = strtol(argv[idx_number]->arg, NULL, 10);
if (write_oi_count < 1 || write_oi_count > 100) {
if (write_oi_count < 1 || write_oi_count > 1000000) {
vty_out(vty, "write-multiplier value is invalid\n");
return CMD_WARNING_CONFIG_FAILED;
}
Expand All @@ -2673,13 +2673,13 @@ DEFUN (ospf_write_multiplier,
return CMD_SUCCESS;
}

ALIAS(ospf_write_multiplier, write_multiplier_cmd, "write-multiplier (1-100)",
ALIAS(ospf_write_multiplier, write_multiplier_cmd, "write-multiplier (1-1000000)",
"Write multiplier\n"
"Maximum number of interface serviced per write\n")

DEFUN (no_ospf_write_multiplier,
no_ospf_write_multiplier_cmd,
"no ospf write-multiplier (1-100)",
"no ospf write-multiplier (1-1000000)",
NO_STR
"OSPF specific commands\n"
"Write multiplier\n"
Expand All @@ -2692,7 +2692,7 @@ DEFUN (no_ospf_write_multiplier,
}

ALIAS(no_ospf_write_multiplier, no_write_multiplier_cmd,
"no write-multiplier (1-100)", NO_STR
"no write-multiplier (1-1000000)", NO_STR
"Write multiplier\n"
"Maximum number of interface serviced per write\n")

Expand Down

0 comments on commit ac41ba0

Please sign in to comment.