mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 06:31:23 -07:00
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:
parent
8a9865cb10
commit
78a14d7966
11 changed files with 875 additions and 227 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue