def is_distributed_router(router):
 try:
  requested_router_type = router.extra_attributes.distributed
 except AttributeError:
  requested_router_type = router.get('distributed')
 if validators.is_attr_set(requested_router_type):
  return requested_router_type
 return cfg.CONF.router_distributed

def is_distributed_router ( router ) : try : requested_router_type = router . extra_attributes . distributed except AttributeError : requested_router_type = router . get ( 'distributed' ) if validators . is_attr_set ( requested_router_type ) : return requested_router_type return cfg . CONF . router_distributed
return true if router to be handled is distributed .