there was conflict between match criteria and dec-mpls-ttl,
now this conflict was solved by not using this tag.
Changes XmlComparator in accordance with PEP8 requirements.
Change-Id: Ibc4aa5c0a89e62c7e4bd10f852d23a2b02a86732
Signed-off-by: Julia Pavlicova <jpavlico@cisco.com>
if nodeKey != 'drop-action':
new_act = child.ownerDocument.createElement('drop-action')
else:
if nodeKey != 'drop-action':
new_act = child.ownerDocument.createElement('drop-action')
else:
- new_act = child.ownerDocument.createElement('dec-mpls-ttl')
+ new_act = child.ownerDocument.createElement('output-action')
+ onc = child.ownerDocument.createElement('output-node-connector')
+ onc_content = child.ownerDocument.createTextNode('TABLE')
+ onc.appendChild(onc_content)
+ new_act.appendChild(onc)
+ ml = child.ownerDocument.createElement('max-length')
+ ml_content = child.ownerDocument.createTextNode('60')
+ ml.appendChild(ml_content)
+ new_act.appendChild(ml)
child.parentNode.replaceChild(new_act, child)
return xml_dom_input.toxml(encoding='utf-8')
child.parentNode.replaceChild(new_act, child)
return xml_dom_input.toxml(encoding='utf-8')