Esempio 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"
Esempio 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"