Skip nodes functionality for Package and Network modules
Added to main entrypoint
- Skip nodes using simple argument with '*' as a trailing wildcard
- Skip nodes using file list
Usability improovement
- Node list preview in status line
- Node stats alignment in net report
Minor fixes:
- Python version detection (3.5+)
- Node counter for each status
- Proper node skip handling
Change-Id: I086ef501bc06f0e739df25349257f1c63a2e2fcf
Related-PROD: PROD-35009
diff --git a/cfg_checker/helpers/args_utils.py b/cfg_checker/helpers/args_utils.py
index 726c20e..498ed30 100644
--- a/cfg_checker/helpers/args_utils.py
+++ b/cfg_checker/helpers/args_utils.py
@@ -11,6 +11,20 @@
self.print_help()
+def get_skip_args(args):
+ if hasattr(args, "skip_nodes"):
+ _skip = getattr(args, "skip_nodes")
+ if _skip:
+ _skip = _skip.split(',')
+ else:
+ _skip = None
+ if hasattr(args, "skip_nodes_file"):
+ _skip_file = getattr(args, "skip_nodes_file")
+ else:
+ _skip_file = None
+ return _skip, _skip_file
+
+
def get_arg(args, str_arg):
_attr = getattr(args, str_arg)
if _attr: