dom0/qvm-core: network parameters for use in Xen config template
This commit is contained in:
parent
478b90e720
commit
1b1c48666f
@ -817,6 +817,12 @@ class QubesVm(object):
|
|||||||
args['mem'] = str(self.memory)
|
args['mem'] = str(self.memory)
|
||||||
args['maxmem'] = str(self.maxmem)
|
args['maxmem'] = str(self.maxmem)
|
||||||
args['vcpus'] = str(self.vcpus)
|
args['vcpus'] = str(self.vcpus)
|
||||||
|
args['ip'] = self.ip
|
||||||
|
args['mac'] = self.mac
|
||||||
|
args['gateway'] = self.gateway
|
||||||
|
args['dns1'] = self.gateway
|
||||||
|
args['dns2'] = self.secondary_dns
|
||||||
|
args['netmask'] = self.netmask
|
||||||
if self.netvm is not None:
|
if self.netvm is not None:
|
||||||
args['netdev'] = "'mac={mac},script=/etc/xen/scripts/vif-route-qubes,ip={ip}".format(ip=self.ip, mac=self.mac)
|
args['netdev'] = "'mac={mac},script=/etc/xen/scripts/vif-route-qubes,ip={ip}".format(ip=self.ip, mac=self.mac)
|
||||||
if self.netvm.qid != 0:
|
if self.netvm.qid != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user