Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@sujipanicker
Copy link

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant