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:
Keir Fraser committed 2007-09-27 17:44:03 +01:00
1 parent 0d68d7c0fa
commit cd76c0a1ed
1 file changed
+3 -5
+3 -5
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.