radfish-supermicro 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: 825ee6506a1f32ebae5d41a4b18e2e82064c750aa703789f1c3fa9d638eb93b8
4
- data.tar.gz: 43686e29e6afc114ca463c9869f2b763248f28fca5adda75302239d3d433a667
3
+ metadata.gz: 441d5216de2e9bf472d76f2c7ff2f08a81cec6c977b2e157905c20b22570f3da
4
+ data.tar.gz: 2cfc199417e94f366f14a2b7ed048dccc1cfc3f90b985ec25478f80fd99901d9
5
5
  SHA512:
6
- metadata.gz: '06591dfac7a41bd3ddb4dc58a27fea9a8e20aa64eb5e6b1c7978d4f1ec6330c3cf8f0c6248cc442a193bcff36ed1069b0f2deb7b6ac891338fdde7bc33597592'
7
- data.tar.gz: 50fc63d0a8142d56b9fb6614b1f591bef6e347c625574d9ce7db2b54a2556cf3a4180451a6c8f33224f905d3e337fde4f966267bc29c3c69cf6bae95c11aa51c
6
+ metadata.gz: 06452d28ac9b6129554e3fa23000c043ecfaa2ed61d18d52f2e8473a0ce93caa7f3ca9dbe5a663dc1e8242f24a4fc605a55e8e9f622398fe39c498252e109b92
7
+ data.tar.gz: c80ea909ddd1891d452e26aa27c5d1b0e6269bca54d3e85fee57fddec18cae07ea9f600f793167a73413d2d9b8954d62d9dea8c850ee23becd82be46b0e0d3b8
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Radfish
4
4
  module Supermicro
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
@@ -11,6 +11,7 @@ module Radfish
11
11
  include Core::Boot
12
12
  include Core::Jobs
13
13
  include Core::Utility
14
+ include Core::Network
14
15
 
15
16
  attr_reader :supermicro_client
16
17
 
@@ -115,6 +116,12 @@ module Radfish
115
116
  @supermicro_client.power_consumption
116
117
  end
117
118
 
119
+ def power_consumption_watts
120
+ # Extract just the current watts from the power_consumption hash
121
+ data = @supermicro_client.power_consumption
122
+ data["consumed_watts"] if data.is_a?(Hash)
123
+ end
124
+
118
125
  # Storage
119
126
 
120
127
  def storage_controllers
@@ -308,6 +315,30 @@ module Radfish
308
315
  def manager_network_protocol
309
316
  @supermicro_client.manager_network_protocol if @supermicro_client.respond_to?(:manager_network_protocol)
310
317
  end
318
+
319
+ # Network management
320
+
321
+ def get_bmc_network
322
+ @supermicro_client.get_bmc_network
323
+ end
324
+
325
+ def set_bmc_network(ip_address: nil, subnet_mask: nil, gateway: nil,
326
+ dns_primary: nil, dns_secondary: nil, hostname: nil,
327
+ dhcp: false)
328
+ @supermicro_client.set_bmc_network(
329
+ ip_address: ip_address,
330
+ subnet_mask: subnet_mask,
331
+ gateway: gateway,
332
+ dns_primary: dns_primary,
333
+ dns_secondary: dns_secondary,
334
+ hostname: hostname,
335
+ dhcp: dhcp
336
+ )
337
+ end
338
+
339
+ def set_bmc_dhcp
340
+ @supermicro_client.set_bmc_dhcp
341
+ end
311
342
  end
312
343
 
313
344
  # Register the adapter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radfish-supermicro
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