Displaying 2 results from an estimated 2 matches for "network_always".
2010 Sep 02
1
[PATCH 1/1] Introduce an option to always pxe-boot a vm.
...diff --git a/src/app/models/vm.rb b/src/app/models/vm.rb
index 88e0aef..885112e 100644
--- a/src/app/models/vm.rb
+++ b/src/app/models/vm.rb
@@ -101,8 +101,9 @@ class Vm < ActiveRecord::Base
 
   BOOT_DEV_HD            = "hd"
   BOOT_DEV_NETWORK       = "network"
+  BOOT_DEV_NETWORK_ALWAYS= "network_always"
   BOOT_DEV_CDROM         = "cdrom"
-  BOOT_DEV_FIELDS        = [ BOOT_DEV_HD, BOOT_DEV_NETWORK, BOOT_DEV_CDROM ]
+  BOOT_DEV_FIELDS        = [ BOOT_DEV_HD, BOOT_DEV_NETWORK, BOOT_DEV_NETWORK_ALWAYS, BOOT_DEV_CDROM ]
 
   PROVISIONING_DELIMITER = ":"...
2010 Sep 21
1
[PATCH] Introduce ability to select any kind of nic model, not just default or virtio.
..."breth0" # FIXME remove this default at some point
        end
-       net_interfaces.push({ :mac => nic.mac, :interface => net_device, :virtio => nic.virtio })
+       net_interfaces.push({ :mac => nic.mac, :interface => net_device, :model => nic.model })
     }
     # network_always indicates that the boot device is "network" and will not change
     # upon reboot.
-- 
1.7.2.1