We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part of XML RPC:
<family> <inet> <filter> <input inactive="inactive"> --> not parsed in OrderedDict <filter-name>re-protection</filter-name> </input> </filter> <address>
XMLCDATANode(xml_attrs=OrderedDict()
The OrderedDict is empty
pprint(root['node']['result']['rpc-reply']['data']['configuration']['interfaces']['interface']['unit'][ 1]['family']['inet']['filter'].get_xml_attrs())
output: OrderedDict()
The text was updated successfully, but these errors were encountered:
In your partial XML output, the XML attribute is on the <input> element, not the <filter> element.
<input>
<filter>
user@h0:~$ python Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> xml = """ ... <family> ... <inet> ... <filter> ... <input inactive="inactive"> --> not parsed in OrderedDict ... <filter-name>re-protection</filter-name> ... </input> ... </filter> ... <address> ... </address> ... </inet> ... </family> ... """ >>> import jxmlease >>> root = jxmlease.parse(xml) >>> root['family']['inet']['filter']['input'].get_xml_attrs() OrderedDict([(u'inactive', u'inactive')]) >>>
Sorry, something went wrong.
Thanks! Worked FIne
No branches or pull requests
Part of XML RPC:
XMLCDATANode(xml_attrs=OrderedDict()
The OrderedDict is empty
pprint(root['node']['result']['rpc-reply']['data']['configuration']['interfaces']['interface']['unit'][
1]['family']['inet']['filter'].get_xml_attrs())
output: OrderedDict()
The text was updated successfully, but these errors were encountered: