#NEWLINE# def render_pool( mrange ) : #NEWLINE# #INDENT# pool_options = mrange . keyvalue_set . filter ( is_option = True ) #NEWLINE# pool_statements = mrange . keyvalue_set . filter ( is_statement = True ) #NEWLINE# build_str = '\tpool {\n' #NEWLINE# build_str += '\t\t# Pool Statements\n' #NEWLINE# build_str += render_statements ( pool_statements , tabs = 2 ) #NEWLINE# build_str += '\t\t# Pool Options\n' #NEWLINE# build_str += render_options ( pool_options , tabs = 2 ) #NEWLINE# build_str += '\n' #NEWLINE# if mrange . dhcpd_raw_include : #NEWLINE# #INDENT# build_str += '\t\t{0}\n' . format ( mrange . dhcpd_raw_include ) #NEWLINE# #UNINDENT# build_str += '\t\trange {0} {1};\n' . format ( mrange . start_str , mrange . end_str ) #NEWLINE# build_str += '\t}\n\n' #NEWLINE# return build_str