Skip to content

Commit

Permalink
[pfcwd]:Set correct time range for parameters (sonic-net#185)
Browse files Browse the repository at this point in the history
Signed-off-by: Sihui Han <[email protected]>
  • Loading branch information
sihuihan88 authored and lguohan committed Jan 12, 2018
1 parent 94e2bb0 commit 1ce88d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pfcwd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def config(ports):
# Start WD
@cli.command()
@click.option('--action', '-a', type=click.Choice(['drop', 'forward', 'alert']))
@click.option('--restoration-time', '-r', type=click.IntRange(100, 5000))
@click.option('--restoration-time', '-r', type=click.IntRange(100, 60000))
@click.argument('ports', nargs = -1)
@click.argument('detection-time', type=click.IntRange(100, 60000))
@click.argument('detection-time', type=click.IntRange(100, 5000))
def start(action, restoration_time, ports, detection_time):
""" Start PFC watchdog on port(s) """
configdb = swsssdk.ConfigDBConnector()
Expand Down

0 comments on commit 1ce88d9

Please sign in to comment.