ibm_power_hmc 0.21.1 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/ibm_power_hmc/schema/templates.rb +1 -0
- data/lib/ibm_power_hmc/schema/uom.rb +28 -2
- data/lib/ibm_power_hmc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b3d62a8c9463bde2ffbcfc08f9005924913a5567506cf6ae2e73fae8863a2bd
|
4
|
+
data.tar.gz: acc60a5a70fff620d64085ffc36a6e2aa79fc582f5644be4b6d1ef1e1484af95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 628151a41e5e7492b42dfea5a510f3030bcc48ffa8d97121e43d6b4a3ba612586bb511f8f4a46aa3644e5acfa6fbc217f04bda179c99d2e9aa23cf6c4d6bf5c9
|
7
|
+
data.tar.gz: f6fea07e19239510bded7d89f7091fbf3f5398c2e2c4ac135c1ef32e75369c4a23666241f0faa7e09c3595ac0f81667539913b30679bf8568bd556008071f041
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
|
+
## v0.23.0
|
2
|
+
* Enhance schema definition for physical fibre channel adapters
|
3
|
+
## v0.22.0
|
4
|
+
* Add schema definitions related to shared memory
|
1
5
|
## v0.21.0
|
2
6
|
* Add methods to create/delete LPAR client network adapters
|
3
7
|
* Add methods and schema definitions for volume groups
|
4
8
|
* Add label and page83 schema definitions for PVs
|
5
9
|
* Add schema definitions for capabilities of lpars and vioses
|
10
|
+
* Improve schema definitions for dedicated CPUs
|
6
11
|
## v0.20.0
|
7
12
|
* Add permissive option (`ignoreError=true`) for cluster APIs
|
8
13
|
* Fix `modify_object` method when URI has a query part
|
@@ -16,6 +16,7 @@ module IbmPowerHmc
|
|
16
16
|
:lpar_id => "logicalPartitionConfig/partitionId",
|
17
17
|
:os => "logicalPartitionConfig/osVersion",
|
18
18
|
:memory => "logicalPartitionConfig/memoryConfiguration/currMemory",
|
19
|
+
:shared_mem => "logicalPartitionConfig/memoryConfiguration/isSharedMemory",
|
19
20
|
:dedicated => "logicalPartitionConfig/processorConfiguration/hasDedicatedProcessors",
|
20
21
|
:sharing_mode => "logicalPartitionConfig/processorConfiguration/sharingMode",
|
21
22
|
:vprocs => "logicalPartitionConfig/processorConfiguration/sharedProcessorConfiguration/desiredVirtualProcessors",
|
@@ -120,9 +120,15 @@ module IbmPowerHmc
|
|
120
120
|
end
|
121
121
|
|
122
122
|
class HostChannelAdapter < IOAdapter; end
|
123
|
-
class PhysicalFibreChannelAdapter < IOAdapter; end
|
124
123
|
class SRIOVAdapter < IOAdapter; end
|
125
124
|
|
125
|
+
# FC adapter information
|
126
|
+
class PhysicalFibreChannelAdapter < IOAdapter
|
127
|
+
def slots
|
128
|
+
collection_of("PhysicalFibreChannelPorts", "PhysicalFibreChannelPort")
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
126
132
|
# Common class for LPAR and VIOS
|
127
133
|
class BasePartition < AbstractRest
|
128
134
|
ATTRS = {
|
@@ -134,6 +140,8 @@ module IbmPowerHmc
|
|
134
140
|
:desired_memory => "PartitionMemoryConfiguration/DesiredMemory",
|
135
141
|
:min_memory => "PartitionMemoryConfiguration/MinimumMemory",
|
136
142
|
:max_memory => "PartitionMemoryConfiguration/MaximumMemory",
|
143
|
+
:ams => "PartitionMemoryConfiguration/ActiveMemorySharingEnabled",
|
144
|
+
:shared_mem => "PartitionMemoryConfiguration/SharedMemoryEnabled",
|
137
145
|
:dedicated => "PartitionProcessorConfiguration/CurrentHasDedicatedProcessors",
|
138
146
|
:sharing_mode => "PartitionProcessorConfiguration/CurrentSharingMode",
|
139
147
|
:uncapped_weight => "PartitionProcessorConfiguration/CurrentSharedProcessorConfiguration/CurrentUncappedWeight",
|
@@ -193,10 +201,27 @@ module IbmPowerHmc
|
|
193
201
|
href = singleton("ProcessorPool", "href")
|
194
202
|
uuid_from_href(href) unless href.nil?
|
195
203
|
end
|
204
|
+
|
205
|
+
def paging_vios_uuid
|
206
|
+
href = singleton("PartitionMemoryConfiguration/CurrentPagingServicePartition", "href")
|
207
|
+
uuid_from_href(href) unless href.nil?
|
208
|
+
end
|
209
|
+
|
210
|
+
def paging_vios_uuids
|
211
|
+
["PrimaryPagingServicePartition", "SecondaryPagingServicePartition"].map do |name|
|
212
|
+
href = singleton("PartitionMemoryConfiguration/#{name}", "href")
|
213
|
+
uuid_from_href(href) unless href.nil?
|
214
|
+
end
|
215
|
+
end
|
196
216
|
end
|
197
217
|
|
198
218
|
# Logical Partition information
|
199
219
|
class LogicalPartition < BasePartition
|
220
|
+
ATTRS = ATTRS.merge({
|
221
|
+
:suspendable => "SuspendCapable",
|
222
|
+
:rrestartable => "RemoteRestartCapable"
|
223
|
+
}.freeze)
|
224
|
+
|
200
225
|
def vnic_dedicated_uuids
|
201
226
|
uuids_from_links("DedicatedVirtualNICs")
|
202
227
|
end
|
@@ -743,7 +768,8 @@ module IbmPowerHmc
|
|
743
768
|
:wwpn => "WWPN",
|
744
769
|
:wwnn => "WWNN",
|
745
770
|
:avail_ports => "AvailablePorts",
|
746
|
-
:total_ports => "TotalPorts"
|
771
|
+
:total_ports => "TotalPorts",
|
772
|
+
:label => "Label"
|
747
773
|
}.freeze
|
748
774
|
|
749
775
|
def pvs
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ibm_power_hmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IBM Power
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|