Refactor working with Networks and Pinger class
- Mapper moved to separate module
- Other modules can use Mapper to get desired networks
- salt_master is now a separate single instance
- Updated file handling on salt
- ping.py, an scripted flexible interface to ping command
multithreaded ping execution, 15 at once
- New commands in network: 'ping' and 'list'
- New error when runtime has no network listed in reclass
Fixes:
- Master node code handling
- Unknown node codes detection
- Proper node code search and handling
- File upload procedures updated
- Packages report fix
Change-Id: I5959210aed53b20b04b05ea880218e93239bb661
Related-PROD: PROD-28199
diff --git a/cfg_checker/clients/__init__.py b/cfg_checker/clients/__init__.py
index 88992f7..c827a38 100644
--- a/cfg_checker/clients/__init__.py
+++ b/cfg_checker/clients/__init__.py
@@ -20,10 +20,10 @@
logger.info("Creating salt remote instance")
# create it once
if salt is None:
- salt = SaltRemote(config)
+ salt = SaltRemote()
# do most expensive operation with no strict timeout possible
# all nodes that answer ping
- salt.nodes_active = salt.get_active_nodes()
+ # salt.nodes_active = salt.get_active_nodes()
# return once required
return salt