action for updated flows changed release/helium-sr3
authorJulia Pavlicova <jpavlico@cisco.com>
Thu, 19 Mar 2015 14:30:48 +0000 (15:30 +0100)
committerJulia Pavlicova <jpavlico@cisco.com>
Thu, 19 Mar 2015 14:30:48 +0000 (15:30 +0100)
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>
test/csit/libraries/XmlComparator.py

index 638e56d3a75d7ceb8f631fb7a049bea70aa2cc02..b5fd28e5de9a3751af08a109a09f8957b3e9ac1b 100644 (file)
@@ -310,6 +310,14 @@ class XmlComparator:
                         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')