fix plugins/netconf/ce.py for netconf/capability/exchange (#60569)

pull/62393/head
Xu Yuandong 5 years ago committed by René Moser
parent 8bc397c229
commit 037401b6e0

@ -0,0 +1,2 @@
bugfixes:
- plugins-netconf-ce - to get attribute 'set-id' from rpc-reply.

@ -167,6 +167,9 @@ class Netconf(NetconfBase):
@ensure_connected
def get(self, *args, **kwargs):
try:
if_rpc_reply = kwargs.pop('if_rpc_reply', False)
if if_rpc_reply:
return self.m.get(*args, **kwargs).xml
return self.m.get(*args, **kwargs).data_xml
except RPCError as exc:
raise Exception(to_xml(exc.xml))

Loading…
Cancel
Save