(self)
| 166 | return bool(util.get_xml_path(xml, "/network/ip/dhcp/bootp/@file")) |
| 167 | |
| 168 | def get_mac_ipaddr(self): |
| 169 | def network(ctx): |
| 170 | result = [] |
| 171 | for net in ctx.xpathEval('/network/ip/dhcp/host'): |
| 172 | host = net.xpathEval('@ip')[0].content |
| 173 | mac = net.xpathEval('@mac')[0].content |
| 174 | result.append({'host': host, 'mac': mac}) |
| 175 | return result |
| 176 | |
| 177 | return util.get_xml_path(self._XMLDesc(0), func=network) |