diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/index.js b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/index.js index e6dd5fd0b9..9375aeb340 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/index.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/CreateForm/Steps/index.js @@ -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, diff --git a/src/fireedge/src/client/components/Forms/VmTemplate/InstantiateForm/Steps/index.js b/src/fireedge/src/client/components/Forms/VmTemplate/InstantiateForm/Steps/index.js index 2d25407c28..214336bb8c 100644 --- a/src/fireedge/src/client/components/Forms/VmTemplate/InstantiateForm/Steps/index.js +++ b/src/fireedge/src/client/components/Forms/VmTemplate/InstantiateForm/Steps/index.js @@ -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({