MCPcopy
hub / github.com/retspen/webvirtcloud / get_mac_ipaddr

Method get_mac_ipaddr

vrtManager/network.py:168–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 1

networkFunction · 0.45

Calls 1

_XMLDescMethod · 0.95

Tested by

no test coverage detected