mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
bandwidth test default, fixes
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
max_delay_on_failure = 900
|
||||
delay_inc_div = 5
|
||||
|
||||
bandwidth = True # Turns metrics bandwidth metrics collection on / off
|
||||
bandwidth_test_interval = 420 # Interval for colllecting bandwidth metrics
|
||||
minimal_collect_interval = 5 # Minimal metric collection interval
|
||||
bandwidth = False # Turns metrics bandwidth metrics collection on / off
|
||||
bandwidth_test_interval = 600 # Interval for colllecting bandwidth metrics
|
||||
minimal_collect_interval = 5 # Minimal metric collection interval
|
||||
|
||||
verbose_mode = False # Set it on for troubleshooting
|
||||
verbose_mode = False # Set it on for troubleshooting
|
||||
|
||||
fetch_routers_in_parallel = False # Set to True if you want to fetch multiple routers parallel
|
||||
max_worker_threads = 5 # Max number of worker threads that can fetch routers (parallel fetch only)
|
||||
|
||||
@@ -136,8 +136,8 @@ class MKTXPConfigKeys:
|
||||
FE_WIRELESS_KEY, FE_WIRELESS_CLIENTS_KEY, FE_CAPSMAN_KEY, FE_CAPSMAN_CLIENTS_KEY, FE_POE_KEY,
|
||||
FE_NETWATCH_KEY, FE_PUBLIC_IP_KEY, FE_USER_KEY, FE_QUEUE_KEY}
|
||||
|
||||
SYSTEM_BOOLEAN_KEYS_YES = {MKTXP_BANDWIDTH_KEY}
|
||||
SYSTEM_BOOLEAN_KEYS_NO = {MKTXP_VERBOSE_MODE, MKTXP_FETCH_IN_PARALLEL}
|
||||
SYSTEM_BOOLEAN_KEYS_YES = set()
|
||||
SYSTEM_BOOLEAN_KEYS_NO = {MKTXP_BANDWIDTH_KEY, MKTXP_VERBOSE_MODE, MKTXP_FETCH_IN_PARALLEL}
|
||||
|
||||
STR_KEYS = (HOST_KEY, USER_KEY, PASSWD_KEY, FE_REMOTE_DHCP_ENTRY)
|
||||
INT_KEYS = ()
|
||||
|
||||
@@ -215,7 +215,7 @@ Selected metrics info can be printed on the command line. For more information,
|
||||
def _add_entry_name(parser, registered_only = False, required = True, help = 'MKTXP Entry name'):
|
||||
parser.add_argument('-en', '--entry-name', dest = 'entry_name',
|
||||
type = str,
|
||||
metavar = config_handler.registered_entries() if registered_only else None,
|
||||
metavar = list(config_handler.registered_entries()) if registered_only else None,
|
||||
required = required,
|
||||
choices = UniquePartialMatchList(config_handler.registered_entries())if registered_only else None,
|
||||
help = help)
|
||||
|
||||
Reference in New Issue
Block a user