Commit 44483f9
committed
Enhance get power/thermal data function.
For different type of servers, we may get more than 1 chassis items.
E.g. In wolfpass server, there are many subitems in Chassis item.
If we use Chassis Power command, it will report error and request
client to specify one subitem by -I, and retry one by one to find
the item which includes power data.
In this patch, it utilizes existed prop parameter and can report the
subitem which includes power during it go through all chassis
subitems, so that client can get power sensor data by one Chassis Power
command directly.
I have done below test and pass.
Chassis Power
Chassis -I Baseboard Power
Chassis Thermal
Chassis -I Baseboard Thermal
Signed-off-by: zhipengl <[email protected]>1 parent 1b45092 commit 44483f9
2 files changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
425 | 426 | | |
426 | 427 | | |
427 | | - | |
| 428 | + | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
453 | 453 | | |
454 | 454 | | |
455 | | - | |
456 | 455 | | |
457 | 456 | | |
458 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
860 | | - | |
| 860 | + | |
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
| 888 | + | |
888 | 889 | | |
889 | | - | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
890 | 895 | | |
891 | 896 | | |
892 | 897 | | |
| |||
1034 | 1039 | | |
1035 | 1040 | | |
1036 | 1041 | | |
1037 | | - | |
| 1042 | + | |
| 1043 | + | |
1038 | 1044 | | |
1039 | 1045 | | |
1040 | 1046 | | |
| |||
0 commit comments