Revision 6801eb5c lib/backend.py
b/lib/backend.py | ||
---|---|---|
2093 | 2093 |
config.set(constants.INISECT_INS, 'nic%d_mac' % |
2094 | 2094 |
nic_count, '%s' % nic.mac) |
2095 | 2095 |
config.set(constants.INISECT_INS, 'nic%d_ip' % nic_count, '%s' % nic.ip) |
2096 |
config.set(constants.INISECT_INS, 'nic%d_bridge' % nic_count, |
|
2097 |
'%s' % nic.bridge) |
|
2096 |
for param in constants.NICS_PARAMETER_TYPES: |
|
2097 |
config.set(constants.INISECT_INS, 'nic%d_%s' % (nic_count, param), |
|
2098 |
'%s' % nic.nicparams.get(param, None)) |
|
2098 | 2099 |
# TODO: redundant: on load can read nics until it doesn't exist |
2099 | 2100 |
config.set(constants.INISECT_INS, 'nic_count' , '%d' % nic_total) |
2100 | 2101 |
|
Also available in: Unified diff