Hi,
I have been able to build gRPC Async Client successfully with Python, Thanks a lot for the support.
However I am getting error "<grpc.framework.crust._control.Rendezvous object at 0xb6fa1e6c>" while running Sync client using SubscribeRequest.
Please suggest if I am using wrong python code. Please let me know if you require some other information from my side.
Using below versions:
Protoc: 3.0.0
OS: Linux CentOS 6.4 32 bit
GRPC: 0.13.0
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ERROR:
Connecting to IP:10.11.12.156::10162
Subscribe: [path {
element: "all"
}
]
subscriptionList: subscription {
path {
element: "all"
}
}
prefix {
element: "system/power"
}
OpenConfig_pb2.SubscribeRequest: subscribe {
subscription {
path {
element: "all"
}
}
prefix {
element: "system/power"
}
}
<grpc.framework.crust._control.Rendezvous object at 0xb6fa1e6c>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SOURCE CODE:
channel = implementations.insecure_channel('10.11.12.156', 10162)
stub = OpenConfig_pb2.beta_create_OpenConfig_stub(channel)
try:
prefix = OpenConfig_pb2.Path()
prefix.element.append('system/power')
subscribe = ""
path_len = 1
subscribe = [0 for x in range(path_len)]
for loop in range(0,path_len):
subscribe[loop] = OpenConfig_pb2.Subscription()
subscribe[loop].path.element.append('all')
subscriptionList = OpenConfig_pb2.SubscriptionList(prefix=prefix, subscription=subscribe)
print "\nSubscribe: "+str(subscribe)
print "\nsubscriptionList: "+str(subscriptionList)
metadata = [('authorization', 'ROOT:ROOT']
print "\nOpenConfig_pb2.SubscribeRequest: "+str(OpenConfig_pb2.SubscribeRequest(subscribe=subscriptionList))
response = stub.Subscribe(OpenConfig_pb2.SubscribeRequest(subscribe=subscriptionList), _TIMEOUT_SECONDS, metadata=metadata)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks a lot for the help.