|
|
@ -148,16 +148,16 @@ output:
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
from lxml.etree import Element, SubElement, tostring, fromstring, XMLSyntaxError
|
|
|
|
from lxml.etree import tostring, fromstring, XMLSyntaxError
|
|
|
|
except ImportError:
|
|
|
|
except ImportError:
|
|
|
|
from xml.etree.ElementTree import Element, SubElement, tostring, fromstring
|
|
|
|
from xml.etree.ElementTree import tostring, fromstring
|
|
|
|
if sys.version_info < (2, 7):
|
|
|
|
if sys.version_info < (2, 7):
|
|
|
|
from xml.parsers.expat import ExpatError as XMLSyntaxError
|
|
|
|
from xml.parsers.expat import ExpatError as XMLSyntaxError
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
from xml.etree.ElementTree import ParseError as XMLSyntaxError
|
|
|
|
from xml.etree.ElementTree import ParseError as XMLSyntaxError
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
from ansible.module_utils.basic import AnsibleModule
|
|
|
|
from ansible.module_utils.network.netconf.netconf import get_capabilities, locked_config, get_config, get
|
|
|
|
from ansible.module_utils.network.netconf.netconf import get_capabilities, get_config, get
|
|
|
|
from ansible.module_utils.network.common.netconf import remove_namespaces
|
|
|
|
from ansible.module_utils.network.common.netconf import remove_namespaces
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
|
|
|
|
|
|
|
|