radfish-idrac 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d5418a4e8c8a45eeae348f1e93f8ea5c7460bfb4eb5d6685f8a08787bccf676
4
- data.tar.gz: 69d66bea4bd4378a54118c1fdeeffdc42cb065e170178914b272babc27385a46
3
+ metadata.gz: 21ca9aaace52a026497cd359cb588c3d5263246834b815f186fa5ab8fc2128f8
4
+ data.tar.gz: 8c7a0867b543a73eec9cebfc9a86367e4a6c9cbcd415ca09c59483f88a88d110
5
5
  SHA512:
6
- metadata.gz: 8d5f576436af56cf32c50fdcb8b03fce475b54e012fbcd2dae40f5454ad8f74ecb0fb18540e2a227af41e2f72ab67b94593c84a2b2f61bdd9a3bd895a28dba59
7
- data.tar.gz: a85ec5c65f1db0231ad5c42678c9c1e54100152394b7b0b2c1d3ceb6754bde099ea7dd22ed7ee4c02711be99a91ae155a2f1a2a4c8ed641b6ed66d97c86f950f
6
+ metadata.gz: 76bdaa10dd93e366ba582f6e9e06faca9faa6d722c9d425abb6ff209b7e7aad904ab1764050bdbad660eb34b6532902a943228dd96979c1b5d88fc2b780083ad
7
+ data.tar.gz: d7befbdcc8e1652e2b2b11fd3b2b086f6a0f3a65978873a5aec6688d7dd5f948bdc89df5d0109075991123d71b5b50d966f9ebd5c670e522e4642c060c493288
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Radfish
4
4
  module Idrac
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -12,6 +12,7 @@ module Radfish
12
12
  include Core::Boot
13
13
  include Core::Jobs
14
14
  include Core::Utility
15
+ include Core::Network
15
16
 
16
17
  attr_reader :idrac_client
17
18
 
@@ -127,6 +128,10 @@ module Radfish
127
128
  @idrac_client.power_consumption
128
129
  end
129
130
 
131
+ def power_consumption_watts
132
+ @idrac_client.get_power_usage_watts
133
+ end
134
+
130
135
  # Storage
131
136
 
132
137
  def storage_controllers
@@ -304,6 +309,30 @@ module Radfish
304
309
  def license_info
305
310
  @idrac_client.license_info if @idrac_client.respond_to?(:license_info)
306
311
  end
312
+
313
+ # Network management
314
+
315
+ def get_bmc_network
316
+ @idrac_client.get_bmc_network
317
+ end
318
+
319
+ def set_bmc_network(ip_address: nil, subnet_mask: nil, gateway: nil,
320
+ dns_primary: nil, dns_secondary: nil, hostname: nil,
321
+ dhcp: false)
322
+ @idrac_client.set_bmc_network(
323
+ ip_address: ip_address,
324
+ subnet_mask: subnet_mask,
325
+ gateway: gateway,
326
+ dns_primary: dns_primary,
327
+ dns_secondary: dns_secondary,
328
+ hostname: hostname,
329
+ dhcp: dhcp
330
+ )
331
+ end
332
+
333
+ def set_bmc_dhcp
334
+ @idrac_client.set_bmc_dhcp
335
+ end
307
336
  end
308
337
 
309
338
  # Register the adapter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radfish-idrac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-22 00:00:00.000000000 Z
11
+ date: 2025-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: radfish