Commit a9fe7e8f authored by Guido Trotter's avatar Guido Trotter
Browse files

Iallocator: NIC parameters

Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarIustin Pop <>
parent 503b97a9
......@@ -6931,8 +6931,19 @@ class IAllocator(object):
# instance data
instance_data = {}
for iinfo, beinfo in i_list:
nic_data = [{"mac": n.mac, "ip": n.ip, "bridge": n.bridge}
for n in iinfo.nics]
nic_data = []
for nic in iinfo.nics:
filled_params = objects.FillDict(
nic_dict = {"mac": nic.mac,
"ip": nic.ip,
"mode": filled_params[constants.NIC_MODE],
"link": filled_params[constants.NIC_LINK],
if filled_params[constants.NIC_MODE] == constants.NIC_MODE_BRIDGED:
nic_dict["bridge"] = filled_params[constants.NIC_LINK]
pir = {
"tags": list(iinfo.GetTags()),
"admin_up": iinfo.admin_up,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment