Hi,
We did a workflow to change the name of some of our dvPortVirtualGroup:
// ------- ReconfigureDVPortgroup_Task -------
// General Settings:
var dvGroups = VcPlugin.getAllDistributedVirtualPortgroups();
for (var i in dvGroups) {
System.log(dvGroups[i].config.name);
if (dvGroups[i].config.name.match(Name))
{
// if (dvGroups[i].config.name.match("XXXX"))
// {
System.log(dvGroups[i].name);
System.log(dvGroups[i].id);
var spec = new VcDVPortgroupConfigSpec();
spec.configVersion = dvGroups[i].config.configVersion;
spec.name = "TEST05";
spec.numPorts = dvGroups[i].config.numPorts;
spec.portNameFormat = dvGroups[i].config.portNameFormat;
spec.description = dvGroups[i].config.description;
spec.type = dvGroups[i].config.type;
spec.policy = dvGroups[i].config.policy;
spec.defaultPortConfig = dvGroups[i].config.defaultPortConfig;
task = dvGroups[i].reconfigureDVPortgroup_Task(spec);
// }
}
}
I found that the "VcDistributedVirtualPortgroup.name" is always keeping the original name of the port group. But the "VcDistributedVirtualPortgroup.config.name" is fine. In vCenter, is shows the "VcDistributedVirtualPortgroup.config.name" value. Can this cause any problem and/or is there a way to change the "VcDistributedVirtualPortgroup.name" ?
Thank you,