Exemplo n.º 1
0
 def get_netblock_label(ip):
     if is_ip_in_any_range(ip, HOUSE_NET_RANGES): return "House"
     if is_ip_in_any_range(ip, SENATE_NET_RANGES): return "Senate"
     if is_ip_in_any_range(ip, EOP_NET_RANGES): return "WH"
Exemplo n.º 2
0
 def get_netblock_label(ip):
     if is_ip_in_any_range(ip, HOUSE_NET_RANGES): return "House"
     if is_ip_in_any_range(ip, SENATE_NET_RANGES): return "Senate"
     if is_ip_in_any_range(ip, EOP_NET_RANGES): return "WH"