@@ -47,6 +47,11 @@ func DataSourceIBMPIInstances() *schema.Resource {
4747 Description : "The dedicated host ID where the shared processor pool resides." ,
4848 Type : schema .TypeString ,
4949 },
50+ Attr_EffectiveProcessorCompatibilityMode : {
51+ Computed : true ,
52+ Description : "Effective processor compatibility mode." ,
53+ Type : schema .TypeString ,
54+ },
5055 Attr_Fault : {
5156 Computed : true ,
5257 Description : "Fault information." ,
@@ -162,6 +167,11 @@ func DataSourceIBMPIInstances() *schema.Resource {
162167 Description : "The ID of the placement group that the instance is a member." ,
163168 Type : schema .TypeString ,
164169 },
170+ Attr_PreferredProcessorCompatibilityMode : {
171+ Computed : true ,
172+ Description : "Preferred processor compatibility mode." ,
173+ Type : schema .TypeString ,
174+ },
165175 Attr_Processors : {
166176 Computed : true ,
167177 Description : "The number of processors that are allocated to the instance." ,
@@ -292,30 +302,32 @@ func flattenPvmInstances(list []*models.PVMInstanceReference, meta any) []map[st
292302 result := make ([]map [string ]any , 0 , len (list ))
293303 for _ , i := range list {
294304 l := map [string ]any {
295- Attr_DedicatedHostID : i .DedicatedHostID ,
296- Attr_LicenseRepositoryCapacity : i .LicenseRepositoryCapacity ,
297- Attr_MaxMem : i .Maxmem ,
298- Attr_MaxProc : i .Maxproc ,
299- Attr_MaxVirtualCores : i .VirtualCores .Max ,
300- Attr_Memory : * i .Memory ,
301- Attr_MinMem : i .Minmem ,
302- Attr_MinProc : i .Minproc ,
303- Attr_MinVirtualCores : i .VirtualCores .Min ,
304- Attr_Networks : flattenPvmInstanceNetworks (i .Networks ),
305- Attr_PinPolicy : i .PinPolicy ,
306- Attr_PlacementGroupID : i .PlacementGroup ,
307- Attr_Processors : * i .Processors ,
308- Attr_ProcType : * i .ProcType ,
309- Attr_PVMInstanceID : * i .PvmInstanceID ,
310- Attr_ServerName : i .ServerName ,
311- Attr_SharedProcessorPool : i .SharedProcessorPool ,
312- Attr_SharedProcessorPoolID : i .SharedProcessorPoolID ,
313- Attr_Status : * i .Status ,
314- Attr_StorageConnection : i .StorageConnection ,
315- Attr_StoragePool : i .StoragePool ,
316- Attr_StoragePoolAffinity : i .StoragePoolAffinity ,
317- Attr_StorageType : i .StorageType ,
318- Attr_VirtualCoresAssigned : i .VirtualCores .Assigned ,
305+ Attr_DedicatedHostID : i .DedicatedHostID ,
306+ Attr_EffectiveProcessorCompatibilityMode : i .EffectiveProcessorCompatibilityMode ,
307+ Attr_LicenseRepositoryCapacity : i .LicenseRepositoryCapacity ,
308+ Attr_MaxMem : i .Maxmem ,
309+ Attr_MaxProc : i .Maxproc ,
310+ Attr_MaxVirtualCores : i .VirtualCores .Max ,
311+ Attr_Memory : * i .Memory ,
312+ Attr_MinMem : i .Minmem ,
313+ Attr_MinProc : i .Minproc ,
314+ Attr_MinVirtualCores : i .VirtualCores .Min ,
315+ Attr_Networks : flattenPvmInstanceNetworks (i .Networks ),
316+ Attr_PinPolicy : i .PinPolicy ,
317+ Attr_PlacementGroupID : i .PlacementGroup ,
318+ Attr_PreferredProcessorCompatibilityMode : i .PreferredProcessorCompatibilityMode ,
319+ Attr_Processors : * i .Processors ,
320+ Attr_ProcType : * i .ProcType ,
321+ Attr_PVMInstanceID : * i .PvmInstanceID ,
322+ Attr_ServerName : i .ServerName ,
323+ Attr_SharedProcessorPool : i .SharedProcessorPool ,
324+ Attr_SharedProcessorPoolID : i .SharedProcessorPoolID ,
325+ Attr_Status : * i .Status ,
326+ Attr_StorageConnection : i .StorageConnection ,
327+ Attr_StoragePool : i .StoragePool ,
328+ Attr_StoragePoolAffinity : i .StoragePoolAffinity ,
329+ Attr_StorageType : i .StorageType ,
330+ Attr_VirtualCoresAssigned : i .VirtualCores .Assigned ,
319331 }
320332
321333 if i .Crn != "" {
0 commit comments