You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to connect to cisco xr device, throwing errors "AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="failed to connect to all addresses")"
#26
Open
sujipanicker opened this issue
Jan 6, 2021
· 0 comments
I am trying to connect to an xr device and unfortunately having issues.
options = 'ems.cisco.com'
client = CiscoGRPCClient('x.x.x.x', 57400, 10, 'username', 'password', pem, options)
client.getconfig('{"openconfig-interfaces:interfaces": [null]}')
This is throwing alerts as below, Any idea what might be the issue here. Appreciate your help.
/home/xxxx/ios-xr-grpc-python/iosxr_grpc/cisco_grpc_client.py in getconfig(self, path)
84 responses = self._stub.GetConfig(message, self._timeout, metadata=self._metadata)
85 objects, err = '', ''
---> 86 for response in responses:
87 objects += response.yangjson
88 err += response.errors
/home/xxx/gnmmi/lib/python3.6/site-packages/grpc/beta/_client_adaptations.py in next(self)
134
135 def next(self):
--> 136 return self._next()
137
138 def next(self):
/home/supanick/gnmmi/lib/python3.6/site-packages/grpc/beta/_client_adaptations.py in _next(self)
131 return next(self._iterator)
132 except grpc.RpcError as rpc_error_call:
--> 133 raise _abortion_error(rpc_error_call)
134
135 def next(self):
AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="failed to connect to all addresses")
The text was updated successfully, but these errors were encountered: