diff --git a/mktxp/cli/config/_mktxp.conf b/mktxp/cli/config/_mktxp.conf index f04b45d..c141369 100644 --- a/mktxp/cli/config/_mktxp.conf +++ b/mktxp/cli/config/_mktxp.conf @@ -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) diff --git a/mktxp/cli/config/config.py b/mktxp/cli/config/config.py index 843615e..a759452 100755 --- a/mktxp/cli/config/config.py +++ b/mktxp/cli/config/config.py @@ -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 = () diff --git a/mktxp/cli/options.py b/mktxp/cli/options.py index 4d7f990..3128b35 100755 --- a/mktxp/cli/options.py +++ b/mktxp/cli/options.py @@ -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)