Slide 13
Slide 13 text
Copyright (C) 2019 Yahoo Japan Corporation. All Rights Reserved.
面倒なところ
13
• XML が 面倒な 厳格な形式なので OVF プ
ロパティの値の取得に一手間
• key も value も attribute
• namespace 指定
↑コレ ↑コレ
ET.find("oe:PropertySection/oe:Property[@oe:key='ip']",{'oe':
'http://schemas.dmtf.org/ovf/environment/1'}).attrib["{http:/
/schemas.dmtf.org/ovf/environment/1}value"])
• ElementTree で ↑ の IP を取得すると