Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Merge 465d563 into d41976b
Browse files Browse the repository at this point in the history
  • Loading branch information
matejv committed Jun 12, 2017
2 parents d41976b + 465d563 commit 2bc1e0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions napalm_yang/parsers/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def _parse_list_container_helper(cls, mapping, iterators, root, list_vars=None):
composite_key = mapping.get("composite_key", None)
forced_key = mapping.get("key", None)
key_attribute = mapping.get("key_attribute", None)
post_process_filter = mapping.pop("post_process_filter", None)

if composite_key:
key = " ".join([extra_vars[k] for k in composite_key])
Expand All @@ -115,6 +116,9 @@ def _parse_list_container_helper(cls, mapping, iterators, root, list_vars=None):
else:
key = element.tag

if post_process_filter:
key = cls._parse_post_process_filter(post_process_filter, key, extra_vars)

yield key, etree.tostring(element), extra_vars

@classmethod
Expand Down

0 comments on commit 2bc1e0f

Please sign in to comment.