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 +4 -4
- data/lib/radfish/supermicro/version.rb +1 -1
- data/lib/radfish/supermicro_adapter.rb +31 -0
- 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: 441d5216de2e9bf472d76f2c7ff2f08a81cec6c977b2e157905c20b22570f3da
|
4
|
+
data.tar.gz: 2cfc199417e94f366f14a2b7ed048dccc1cfc3f90b985ec25478f80fd99901d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06452d28ac9b6129554e3fa23000c043ecfaa2ed61d18d52f2e8473a0ce93caa7f3ca9dbe5a663dc1e8242f24a4fc605a55e8e9f622398fe39c498252e109b92
|
7
|
+
data.tar.gz: c80ea909ddd1891d452e26aa27c5d1b0e6269bca54d3e85fee57fddec18cae07ea9f600f793167a73413d2d9b8954d62d9dea8c850ee23becd82be46b0e0d3b8
|
@@ -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.
|
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-
|
11
|
+
date: 2025-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: radfish
|