From ec3a5de9835183f3dbd93eb0f4c6ed9a63dc90a4 Mon Sep 17 00:00:00 2001 From: Sihui Han Date: Fri, 12 Jan 2018 02:22:48 +0000 Subject: [PATCH] [pfcwd]:Set correct time range for parameters 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 eb95e17fce..22f636d25f 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()