def _admin_get_local_addresses(ctx): try: stub = qrl_pb2_grpc.AdminAPIStub(ctx.obj.channel_admin) getAddressStateResp = stub.GetLocalAddresses(qrl_pb2.GetLocalAddressesReq(), timeout=5) return getAddressStateResp.addresses except Exception as e: click.echo('Error connecting to node', color='red') return []
def get_stub_admin_api(self): return qrl_pb2_grpc.AdminAPIStub(self.channel_admin)