Hi,
I'm trying to create a workflow to change network settings, ex : I deploy a template, this template is already on port group (vLan_xxx), but I need to propose to change port group (ex: DMZ) and modify the IP settings (different subnet mask and gateway).
In first time I already do a customization task (Set : VM name, temp IP, etc..) because I need to make some actions just after and I change port group but I would like to set the good IP settings, I try to create a scriptable task just before another customization task but no success.
Here my scriptable task :
var DMZ = DMZ_Network.name;
if (DMZ == "LAN_DMZ_aaa.aaa.aaa.aaa"){
Sysprep_subnetMask_DMZ="255.255.255.xxx";
Sysprep_gateway_DMZ[0]="xxx.xxx.xxx.xxx";
}
if (DMZ == "LAN_DMZ_bbb.bbb.bbb.bbb"){
Sysprep_subnetMask_DMZ="255.255.255.xxx";
Sysprep_gateway_DMZ[0]="xxx.xxx.xxx.xxx";
}
if (DMZ == "LAN_DMZ_ccc.ccc.ccc.ccc"){
Sysprep_subnetMask_DMZ="255.255.255.xxx";
Sysprep_gateway_DMZ[0]="xxx.xxx.xxx.xxx";
}
If someone have a solution or a better idea...
THX in advance