diff --git a/config/main.py b/config/main.py index 3daf93c73d..2db0c8f44a 100755 --- a/config/main.py +++ b/config/main.py @@ -1448,7 +1448,7 @@ def portchannel(ctx, namespace): @portchannel.command('add') @click.argument('portchannel_name', metavar='', required=True) -@click.option('--min-links', default=0, type=int) +@click.option('--min-links', default=1, type=click.IntRange(1,1024)) @click.option('--fallback', default='false') @click.pass_context def add_portchannel(ctx, portchannel_name, min_links, fallback):