Parsing Ping return codes and saving iteration details

 - ping command detects error types and saves events
 - exit on no packets to send
 - ping now uses runtime map (as reclass can have DHCP set)

Change-Id: Iad66bd90d0c5a43e04fd785f02f8e1c2769dda62
Related-PROD: PROD-28199
diff --git a/cfg_checker/modules/network/mapper.py b/cfg_checker/modules/network/mapper.py
index c44775f..08cc99f 100644
--- a/cfg_checker/modules/network/mapper.py
+++ b/cfg_checker/modules/network/mapper.py
@@ -100,7 +100,7 @@
             # get the reclass value
             _pillar = salt_master.nodes[node]['pillars']['linux']['network']
             # we should be ready if there is no interface in reclass for a node
-            # for example on APT nohde
+            # for example on APT node
             if 'interface' in _pillar:
                 _pillar = _pillar['interface']
             else:
@@ -110,6 +110,8 @@
                     )
                 )
                 continue
+
+            # build map based on IPs
             for _if_name, _if_data in _pillar.iteritems():
                 if 'address' in _if_data:
                     _if = ipaddress.IPv4Interface(
@@ -131,6 +133,8 @@
         # class uses nodes from self.nodes dict
         _confs = {}
 
+        # TODO: parse /etc/network/interfaces
+
         return _confs
 
     def _map_runtime_networks(self):