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