def get_all_ips():
 ips = set()
 interfaces = netifaces.interfaces()
 for interface in interfaces:
  addresses = netifaces.ifaddresses(interface)
  for address_family in (netifaces.AF_INET, netifaces.AF_INET6):
   family_addresses = addresses.get(address_family)
   if (not family_addresses):
    continue
   for address in family_addresses:
    ips.add(ipaddress_from_string(address['addr']))
 return ips

def get_all_ips ( ) : ips = set ( ) interfaces = netifaces . interfaces ( ) for interface in interfaces : addresses = netifaces . ifaddresses ( interface ) for address_family in ( netifaces . AF_INET , netifaces . AF_INET6 ) : family_addresses = addresses . get ( address_family ) if ( not family_addresses ) : continue for address in family_addresses : ips . add ( ipaddress_from_string ( address [ 'addr' ] ) ) return ips
get the ips for all deployment nodes .