Cliconf and Netconf refactoring iosxr_interface (#33909)

* Cliconf and Netconf refactoring iosxr_interface

* adds `xml` key and related changes for netconf output

* * review comments changes
This commit is contained in:
Kedar Kekan
2017-12-20 13:06:07 +05:30
committed by GitHub
parent 8a9865cb10
commit 78a14d7966
11 changed files with 875 additions and 227 deletions

View File

@@ -77,7 +77,11 @@ class NetconfConnection(Connection):
warnings = []
for error in error_list:
message = error.find('./nc:error-message', NS_MAP).text
try:
message = error.find('./nc:error-message', NS_MAP).text
except Exception:
message = error.find('./nc:error-info', NS_MAP).text
severity = error.find('./nc:error-severity', NS_MAP).text
if severity == 'warning' and self.ignore_warning: