mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
xend: fix server/netif.py so that it respects type=None.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
1 parent
0d68d7c0fa
commit
cd76c0a1ed
1 file changed
+3
-5
@@ -115,17 +115,15 @@ class NetifController(DevController):
|
||||
accel = config.get('accel')
|
||||
sec_lab = config.get('security_label')
|
||||
|
||||
if not typ:
|
||||
typ = xoptions.netback_type
|
||||
|
||||
if not mac:
|
||||
raise VmError("MAC address not specified or generated.")
|
||||
|
||||
devid = self.allocateDeviceID()
|
||||
|
||||
back = { 'script' : script,
|
||||
'mac' : mac,
|
||||
'type' : typ }
|
||||
'mac' : mac }
|
||||
if typ:
|
||||
back['type'] = typ
|
||||
if ipaddr:
|
||||
back['ip'] = ipaddr
|
||||
if bridge:
|
||||
|
||||