Esempio n. 1
0
def db_query_IPDomainOverview():
  ip_domains = db_query_all(IPDomain)
  for ip_domain in ip_domains:
    ipv4network_count =  db_session.query(DomainIPv4.id).filter(DomainIPv4.ip_domain_id==ip_domain['id']).count() 
    ip_domain['ipv4network_count'] = ipv4network_count
    ip_domain['ipv6network_count'] = 0
  return ip_domains
Esempio n. 2
0
def api_ip_domains_get():
  return response(result = db_query_all(IPDomain))