def join(self, address, wan=False):
            """
            This endpoint instructs the agent to attempt to connect to a
            given address.

            *address* is the ip to connect to.

            *wan* is either 'true' or 'false'. For agents running in server
            mode, 'true' causes the agent to attempt to join using the WAN
            pool. Default is 'false'.
            """

            params = {}

            if wan:
                params['wan'] = 1

            return self.agent.http.get(
                lambda x: x.code == 200,
                '/v1/agent/join/%s' % address,
                params=params)
dataset/ETHPy150Open cablehead/python-consul/consul/base.py/Consul.Agent.join/original