def router(self):
        """return first available router"""
        for server in self._routers:
            info = Servers().info(server)
            if info['procInfo'].get('alive', False):
                return {'id': server, 'hostname': Servers().hostname(server)}
def router ( self ) : for server in self . _routers : info = Servers ( ) . info ( server ) if info [ 'procInfo' ] . get ( 'alive' , False ) : return { 'id' : server , 'hostname' : Servers ( ) . hostname ( server ) }
return first available router