From 1ce88d9c13d91ff590d24693150cab05cef05122 Mon Sep 17 00:00:00 2001 From: sihuihan88 Date: Thu, 11 Jan 2018 19:39:57 -0800 Subject: [PATCH] [pfcwd]:Set correct time range for parameters (#185) Signed-off-by: Sihui Han --- pfcwd/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pfcwd/main.py b/pfcwd/main.py index eb95e17fce9f..22f636d25f3e 100644 --- a/pfcwd/main.py +++ b/pfcwd/main.py @@ -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()