Skip to content
Snippets Groups Projects
Commit d349bebd authored by David Schmitz's avatar David Schmitz
Browse files

fix/checksync: ipv6 support fix

parent 1ce26a23
Branches
No related tags found
No related merge requests found
...@@ -542,6 +542,12 @@ class Route(object): ...@@ -542,6 +542,12 @@ class Route(object):
grandChildName_ = Tag_pattern_.match(grandChild_.tag).groups()[-1] grandChildName_ = Tag_pattern_.match(grandChild_.tag).groups()[-1]
grandChildText = grandChild_.text grandChildText = grandChild_.text
grandChildText = re_.sub(STRING_CLEANUP_PAT, " ", grandChildText).strip() grandChildText = re_.sub(STRING_CLEANUP_PAT, " ", grandChildText).strip()
if grandChildText=="" and (grandChildName_=="destination" or grandChildName_=="source"):
for grandgrandChild_ in grandChild_:
grandgrandChildName_ = Tag_pattern_.match(grandgrandChild_.tag).groups()[-1]
if grandgrandChildName_=="prefix":
grandChildText = grandgrandChild_.text
grandChildText = re_.sub(STRING_CLEANUP_PAT, " ", grandChildText).strip()
self.match[grandChildName_].append(grandChildText) self.match[grandChildName_].append(grandChildText)
elif nodeName_ == 'then': elif nodeName_ == 'then':
for grandChild_ in child_: for grandChild_ in child_:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment