def _get_dns_services(subnet):
 services = []
 if (not subnet.get('dns')):
  return services
 return [{'type': 'dns', 'address': ip.get('address')} for ip in subnet['dns']]

def _get_dns_services ( subnet ) : services = [ ] if ( not subnet . get ( 'dns' ) ) : return services return [ { 'type' : 'dns' , 'address' : ip . get ( 'address' ) } for ip in subnet [ 'dns' ] ]
get the dns servers for the subnet .