mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
B OpenNebula/one#6349: Fix VM template NIC (#2795)
This commit is contained in:
parent
00b7ac4a3e
commit
93a039bd8b
@ -151,6 +151,10 @@ const Steps = createSteps([General, ExtraConfiguration, CustomVariables], {
|
||||
extraTemplate.CPU_MODEL.FEATURES.join(', ')
|
||||
}
|
||||
|
||||
;['NIC', 'NIC_ALIAS'].forEach((nicKey) =>
|
||||
extraTemplate?.[nicKey]?.forEach((NIC) => delete NIC?.NAME)
|
||||
)
|
||||
|
||||
return jsonToXml({
|
||||
...customVariables,
|
||||
...extraTemplate,
|
||||
|
@ -62,6 +62,9 @@ const Steps = createSteps(
|
||||
...vmTemplate?.TEMPLATE?.OS,
|
||||
...extraTemplate?.OS,
|
||||
})
|
||||
;['NIC', 'NIC_ALIAS'].forEach((nicKey) =>
|
||||
extraTemplate?.[nicKey]?.forEach((NIC) => delete NIC?.NAME)
|
||||
)
|
||||
|
||||
// merge with template disks to get TYPE attribute
|
||||
const templateXML = jsonToXml({
|
||||
|
Loading…
x
Reference in New Issue
Block a user