Change URI to specific ovsdb node
[integration/test.git] / tools / OF_Test / test1.py
1 from xml.dom import minidom
2
3 xmldoc = minidom.parse('./xmls/f7.xml')
4 flow = xmldoc.childNodes[0]
5 match = flow.childNodes[11]
6
7 print match.toxml()
8
9 ip_match = match.getElementsByTagName("ip-match")
10 print 'ip-match:', ip_match
11
12 # print "ethernet type", match.getElementsByTagName("type")[0].childNodes[0].data
13 # print "ethernet cvok", match.getElementsByTagName("cvok")[0].childNodes[0].data