Use the netmask and gateway specific to the NIC for the VM in question
[invirt/packages/invirt-xen-config.git] / invirt-database
index ade475d..936c2a7 100644 (file)
@@ -95,7 +95,7 @@ if 'installer_options' in locals(): #Installer
         n = machine.nics[0]
         extra = 'ro noresume'
         extra += (' ip=%s::%s:%s:%s:eth0:off'
-                  % (n.ip, config.dhcp.gateway, config.dhcp.netmask, machine.name))
+                  % (n.ip, n.gateway, n.netmask, machine.name))
         extra += ' %s' % installer_options
         root = '/dev/hdb1'
     codepath = None