From b608dea24a9f178d3f1e47bdc72411e501fac447 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Mon, 22 Jan 2018 11:20:52 -0500 Subject: [PATCH] Support rspconfig powersupplyredundancy --- xCAT-server/lib/xcat/plugins/openbmc.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 66579089e..0c61f2d34 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -578,10 +578,14 @@ my %api_config_info = ( RSPCONFIG_POWERSUPPLY_REDUNDENCY => { command => "rspconfig", url => "/sensors/chassis/PowerSupplyRedundancy", - attr_url => "PowerSupplyRedundency", - display_name => "PowerSupplyRedundency", - type => "boolean", - subcommand => "powersupplyredundency", + attr_url => "value", + display_name => "PowerSupplyRedundancy", + type => "attribute", + subcommand => "powersupplyredundancy", + attr_value => { + enabled => "Enabled", + disabled => "Disabled", + }, }, RSPCONFIG_POWERRESTORE_POLICY => { command => "rspconfig",