Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge base rules #110

Merged
merged 1 commit into from
Jun 12, 2024
Merged

Merge base rules #110

merged 1 commit into from
Jun 12, 2024

Conversation

masa213f
Copy link
Contributor

@masa213f masa213f commented Jun 12, 2024

This PR merges the base-rules/dell.yaml and base-rules/dell-redfish-v117.yaml.
Because it is confusing which file to use as a base file, when updating to the new Redfish.

The difference between the two files is as follows.
So I add new settings to base-rules/dell.yaml. And delete base-rules/dell-redfish-v117.yaml
Also, I update run_generate-rule.sh.

$ diff -u <(yq base-rules/dell.yaml) <(yq base-rules/dell-redfish-v117.yaml)
--- /dev/fd/63  2024-06-12 10:45:46.093108062 +0900
+++ /dev/fd/62  2024-06-12 10:45:46.093108062 +0900
@@ -22,6 +22,7 @@
     - /TaskService
     - /TelemetryService
     - /UpdateService
+    - /LicenseService
     # Sub-metrics included in /Power or /Thermal
     - /Power/
     - /Power#/
@@ -30,15 +31,26 @@
     # Redundant page with extra trailing slash
     - /redfish/v1/Chassis/$
 Metrics:
+  ## Chassis
   - Path: /redfish/v1/Chassis/{chassis}
   - Path: /redfish/v1/Chassis/{chassis}/Assembly
   - Path: /redfish/v1/Chassis/{chassis}/NetworkAdapters/{nic}
   - Path: /redfish/v1/Chassis/{chassis}/NetworkAdapters/{nic}/NetworkDeviceFunctions/{function}
   - Path: /redfish/v1/Chassis/{chassis}/NetworkAdapters/{nic}/NetworkPorts/{port}
+  - Path: /redfish/v1/Chassis/{chassis}/NetworkAdapters/{nic}/Ports/{port}
+  - Path: /redfish/v1/Chassis/{chassis}/PCIeDevices/{device}
+  - Path: /redfish/v1/Chassis/{chassis}/PCIeDevices/{device}/PCIeFunctions/{function}
   - Path: /redfish/v1/Chassis/{chassis}/PCIeSlots
   - Path: /redfish/v1/Chassis/{chassis}/Power
+  - Path: /redfish/v1/Chassis/{chassis}/PowerSubsystem
+  - Path: /redfish/v1/Chassis/{chassis}/PowerSubsystem/PowerSupplies/{unit}
+  - Path: /redfish/v1/Chassis/{chassis}/PowerSubsystem/PowerSupplies/{unit}/Metrics
   - Path: /redfish/v1/Chassis/{chassis}/Sensors/{sensor}
   - Path: /redfish/v1/Chassis/{chassis}/Thermal
+  - Path: /redfish/v1/Chassis/{chassis}/ThermalSubsystem
+  - Path: /redfish/v1/Chassis/{chassis}/ThermalSubsystem/Fans/{unit}
+  - Path: /redfish/v1/Chassis/{chassis}/ThermalSubsystem/ThermalMetrics
+  ## Dell
   - Path: /redfish/v1/Dell/Chassis/{system}/DellAssembly/{assembly}
   - Path: /redfish/v1/Dell/Systems/{system}/DellNumericSensor/{sensor}
   - Path: /redfish/v1/Dell/Systems/{system}/DellPCIeFunction/{function}
@@ -55,13 +67,16 @@
   - Path: /redfish/v1/Dell/Systems/{system}/Storage/DellPCIeSSD/{disk}
   - Path: /redfish/v1/Dell/Systems/{system}/Storage/Drives/DellPhysicalDisk/{disk}
   - Path: /redfish/v1/Dell/Systems/{system}/Storage/Volumes/DellVirtualDisk/{disk}
+  ## Fabrics
   - Path: /redfish/v1/Fabrics/{fabric}
   - Path: /redfish/v1/Fabrics/{fabric}/Switches
+  ## Managers
   - Path: /redfish/v1/Managers/{manager}
   - Path: /redfish/v1/Managers/{manager}/Attributes
   - Path: /redfish/v1/Managers/{manager}/EthernetInterfaces/{interface}
   - Path: /redfish/v1/Managers/{manager}/HostInterfaces/{host}
   - Path: /redfish/v1/Managers/{manager}/NetworkProtocol
+  ## Systems
   - Path: /redfish/v1/Systems/{system}
   - Path: /redfish/v1/Systems/{system}/BootOptions/{option}
   - Path: /redfish/v1/Systems/{system}/EthernetInterfaces/{interface}
@@ -76,21 +91,8 @@
   - Path: /redfish/v1/Systems/{system}/Processors/{processor}
   - Path: /redfish/v1/Systems/{system}/SimpleStorage/{controller}
   - Path: /redfish/v1/Systems/{system}/Storage/{storage}
+  - Path: /redfish/v1/Systems/{system}/Storage/{storage}/Controllers/{controller}
   - Path: /redfish/v1/Systems/{system}/Storage/{storage}/Drives/{device}
   - Path: /redfish/v1/Systems/{system}/Storage/{storage}/StorageControllers/{controller}
   - Path: /redfish/v1/Systems/{system}/Storage/{storage}/Volumes
   - Path: /redfish/v1/Systems/{system}/Storage/{storage}/Volumes/{volume}
-# ./collector generate-rule --base-rule=base-rules/dell.yaml \
-#   --key=Health:health \
-#   --key=FailurePredicted:bool \
-#   --key=PredictedMediaLifeLeftPercent:number \
-#   --key=AddressParityError:bool \
-#   --key=CorrectableECCError:bool \
-#   --key=SpareBlock:bool \
-#   --key=Temperature:bool \
-#   --key=UncorrectableECCError:bool \
-#   --key=DataLossDetected:bool \
-#   --key=State:state \
-#   --key=ReadingCelsius:number \
-#   --key=PowerConsumedWatts:number \
-#   <model-1-data>.json <model-2-data>.json ... > generated.yaml

Signed-off-by: Masayuki Ishii <[email protected]>
@masa213f masa213f self-assigned this Jun 12, 2024
@masa213f masa213f marked this pull request as ready for review June 12, 2024 02:16
@masa213f masa213f merged commit 64e00a1 into main Jun 12, 2024
1 check passed
@masa213f masa213f deleted the update-20240612 branch June 12, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants