#NEWLINE# def is_distributed_router( router ) : #NEWLINE# #INDENT# 'Return True if router to be handled is distributed.' #NEWLINE# try : #NEWLINE# #INDENT# requested_router_type = router . extra_attributes . distributed #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# requested_router_type = router . get ( 'distributed' ) #NEWLINE# #UNINDENT# if validators . is_attr_set ( requested_router_type ) : #NEWLINE# #INDENT# return requested_router_type #NEWLINE# #UNINDENT# return cfg . CONF . router_distributed