Skip to content

Unable to connect to cisco xr device, throwing errors "AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="failed to connect to all addresses")" #26

@sujipanicker

Description

@sujipanicker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions