mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
fix macvtap network list
This commit is contained in:
parent
de63d9746d
commit
46884304b0
2 changed files with 8 additions and 3 deletions
|
|
@ -1342,8 +1342,8 @@ class wvmInstance(wvmConnect):
|
|||
net_source_type = network_data.get('net-source-' + str(num) + '-type')
|
||||
net_filter = network_data.get('net-nwfilter-' + str(num))
|
||||
net_model = network_data.get('net-model-' + str(num))
|
||||
bridge_name = self.get_bridge_name(net_source, net_source_type)
|
||||
if interface.get('type') == 'bridge':
|
||||
bridge_name = self.get_bridge_name(net_source, net_source_type)
|
||||
source = interface.find('mac')
|
||||
source.set('address', net_mac)
|
||||
source = interface.find('source')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue