Network check fixes
- Proper network mapping
- Proper reclass lookup
- VIP detection
- Simple error gathering
- IP shown as 'exploded', i.e. in CIDR format
- MTU matching and detection
- Errors class for handling errors, including codes and indices
- Summary and detailed errors view
- Flake8 refactoring
Change-Id: I8ee37d345bdc21c7ad930bf8305acd28f8c121c8
Related-PROD: PROD-28199
diff --git a/cfg_checker/common/settings.py b/cfg_checker/common/settings.py
index 8d8111c..33e7c25 100644
--- a/cfg_checker/common/settings.py
+++ b/cfg_checker/common/settings.py
@@ -1,7 +1,9 @@
import os
from exception import ConfigException
-from log import logger, logger_cli
+
+from log import logger_cli
+
from other import utils
pkg_dir = os.path.dirname(__file__)
@@ -74,7 +76,11 @@
if os.path.isfile(_config_path):
with open(_config_path) as _f:
_list = _f.read().splitlines()
- logger_cli.info("# Loading env vars from '{}'".format(_config_path))
+ logger_cli.info(
+ "# Loading env vars from '{}'".format(
+ _config_path
+ )
+ )
else:
raise ConfigException(
"# Failed to load enviroment vars from '{}'".format(
@@ -103,7 +109,11 @@
)
)
else:
- logger_cli.debug("-> ...loaded total of '{}' vars".format(len(_list)))
+ logger_cli.debug(
+ "-> ...loaded total of '{}' vars".format(
+ len(_list)
+ )
+ )
self.salt_env = _env_name
def __init__(self):