#NEWLINE# def check_dns_servers_ips( self ) : #NEWLINE# #INDENT# 'check DNS servers IPs are distinct' #NEWLINE# ips = self . network_config [ 'dns_nameservers' ] #NEWLINE# if ( len ( set ( ips ) ) < len ( ips ) ) : #NEWLINE# #INDENT# self . err_msgs . append ( 'DNS servers IPs have to be distinct.' ) #NEWLINE# self . result . append ( { #NEWLINE# #INDENT# 'ids' : [ ] , #NEWLINE# 'errors' : [ 'dns_nameservers' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . expose_error_messages ( )