diff --git a/lib/backend.py b/lib/backend.py index ebbc43a818682dd1596dddcec26b5d7b12427533..326d0f8f8b1a763178d8ca6129258fc12e7e9e64 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -2093,8 +2093,9 @@ def FinalizeExport(instance, snap_disks): config.set(constants.INISECT_INS, 'nic%d_mac' % nic_count, '%s' % nic.mac) config.set(constants.INISECT_INS, 'nic%d_ip' % nic_count, '%s' % nic.ip) - config.set(constants.INISECT_INS, 'nic%d_bridge' % nic_count, - '%s' % nic.bridge) + for param in constants.NICS_PARAMETER_TYPES: + config.set(constants.INISECT_INS, 'nic%d_%s' % (nic_count, param), + '%s' % nic.nicparams.get(param, None)) # TODO: redundant: on load can read nics until it doesn't exist config.set(constants.INISECT_INS, 'nic_count' , '%d' % nic_total)