772cc64
diff -rup xen-3.1.0-src.orig/tools/python/xen/xend/server/netif.py xen-3.1.0-src.new/tools/python/xen/xend/server/netif.py
772cc64
--- xen-3.1.0-src.orig/tools/python/xen/xend/server/netif.py	2007-09-19 14:24:34.000000000 -0400
772cc64
+++ xen-3.1.0-src.new/tools/python/xen/xend/server/netif.py	2007-09-19 14:25:28.000000000 -0400
772cc64
@@ -108,17 +108,15 @@ class NetifController(DevController):
772cc64
         ipaddr  = config.get('ip')
772cc64
         model   = config.get('model')
772cc64
 
772cc64
-        if not typ:
772cc64
-            typ = xoptions.netback_type
772cc64
-
772cc64
         if not mac:
772cc64
             mac = randomMAC()
772cc64
 
772cc64
         devid = self.allocateDeviceID()
772cc64
 
772cc64
         back = { 'script' : script,
772cc64
-                 'mac'    : mac,
772cc64
-                 'type'   : typ }
772cc64
+                 'mac'    : mac }
772cc64
+        if typ:
772cc64
+            back['type'] = typ
772cc64
         if ipaddr:
772cc64
             back['ip'] = ipaddr
772cc64
         if bridge: