Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
651477787 authored May 5, 2023
1 parent 3669cea commit 2eed666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6569,7 +6569,8 @@ def sample_rate(ctx, ifname, rate):
config_db = ValidatedConfigDBConnector(ctx.obj['db'])
if ADHOC_VALIDATION:
if not interface_name_is_valid(config_db, ifname) and ifname != 'all':
ctx.fail('Invalid interface name')
click.echo('Invalid interface name')
return
if not is_valid_sample_rate(rate) and rate != 'default':
ctx.fail('Sample rate must be between 256 and 8388608 or default')

Expand Down

0 comments on commit 2eed666

Please sign in to comment.