#NEWLINE# def _enable_dhcp( self ) : #NEWLINE# #INDENT# 'check if there is a subnet within the network with dhcp enabled.' #NEWLINE# for subnet in subnet . network . subnets : #NEWLINE# #INDENT# if subnet . enable_dhcp : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False