#NEWLINE# def render_sreg( sreg , hw , tabs = 2 ) : #NEWLINE# #INDENT# build_str = '' #NEWLINE# options = hw . keyvalue_set . filter ( is_option = True ) #NEWLINE# statements = hw . keyvalue_set . filter ( is_statement = True ) #NEWLINE# build_str += render_host ( sreg . fqdn , sreg . ip_str , hw . mac , hw . name , options , statements , tabs = tabs ) #NEWLINE# return options