From 014297b86802f43e435144535bb45d0df68bf96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Gal=C3=ADn=20Figueras?= Date: Mon, 25 Apr 2016 08:09:51 +0200 Subject: [PATCH] Fixed netif params when create lxc container (#2064) --- cloud/misc/proxmox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud/misc/proxmox.py b/cloud/misc/proxmox.py index 1b908d99c15..9647db4bf8e 100644 --- a/cloud/misc/proxmox.py +++ b/cloud/misc/proxmox.py @@ -213,6 +213,9 @@ def create_instance(module, proxmox, vmid, node, disk, storage, cpus, memory, sw if VZ_TYPE =='lxc': kwargs['cpulimit']=cpus kwargs['rootfs']=disk + if 'netif' in kwargs: + kwargs.update(kwargs['netif']) + del kwargs['netif'] else: kwargs['cpus']=cpus kwargs['disk']=disk