def _get_interfaces():
 global _INTERFACES
 if (not _INTERFACES):
  _INTERFACES = salt.utils.network.interfaces()
 return _INTERFACES

def _get_interfaces ( ) : global _INTERFACES if ( not _INTERFACES ) : _INTERFACES = salt . utils . network . interfaces ( ) return _INTERFACES
provide a dict of the connected interfaces and their ip addresses .