def network_size(value, options=None, version=None):
 ipaddr_filter_out = _filter_ipaddr(value, options=options, version=version)
 if (not ipaddr_filter_out):
  return
 if (not isinstance(value, (list, tuple, types.GeneratorType))):
  return _network_size(ipaddr_filter_out[0])
 return [_network_size(ip_a) for ip_a in ipaddr_filter_out]

def network_size ( value , options = None , version = None ) : ipaddr_filter_out = _filter_ipaddr ( value , options = options , version = version ) if ( not ipaddr_filter_out ) : return if ( not isinstance ( value , ( list , tuple , types . GeneratorType ) ) ) : return _network_size ( ipaddr_filter_out [ 0 ] ) return [ _network_size ( ip_a ) for ip_a in ipaddr_filter_out ]
get the size of a network .