Step 2: Move test folder to root
[integration/test.git] / tools / OF_Test / test1.py
diff --git a/tools/OF_Test/test1.py b/tools/OF_Test/test1.py
new file mode 100644 (file)
index 0000000..8e3b068
--- /dev/null
@@ -0,0 +1,13 @@
+from xml.dom import minidom
+
+xmldoc = minidom.parse('./xmls/f7.xml')
+flow = xmldoc.childNodes[0]
+match = flow.childNodes[11]
+
+print match.toxml()
+
+ip_match = match.getElementsByTagName("ip-match")
+print 'ip-match:', ip_match
+
+# print "ethernet type", match.getElementsByTagName("type")[0].childNodes[0].data
+# print "ethernet cvok", match.getElementsByTagName("cvok")[0].childNodes[0].data