mirror of
https://github.com/retspen/webvirtcloud
synced 2024-11-01 03:54:15 +00:00
Fixed when net dev vnet
This commit is contained in:
parent
b8caf3f49a
commit
6f0c016ec8
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class wvmInstance(wvmConnect):
|
||||||
result = []
|
result = []
|
||||||
for net in ctx.xpathEval('/domain/devices/interface'):
|
for net in ctx.xpathEval('/domain/devices/interface'):
|
||||||
mac_host = net.xpathEval('mac/@address')[0].content
|
mac_host = net.xpathEval('mac/@address')[0].content
|
||||||
nic_host = net.xpathEval('source/@network|source/@bridge|source/@dev')[0].content
|
nic_host = net.xpathEval('source/@network|source/@bridge|source/@dev|target/@dev')[0].content
|
||||||
try:
|
try:
|
||||||
net = self.get_network(nic_host)
|
net = self.get_network(nic_host)
|
||||||
ip = get_mac_ipaddr(net, mac_host)
|
ip = get_mac_ipaddr(net, mac_host)
|
||||||
|
|
Loading…
Reference in a new issue