@ -92,6 +92,14 @@ EXAMPLES = '''
username : " {{ username }} "
username : " {{ username }} "
password : " {{ password }} "
password : " {{ password }} "
- name : Get Manager NIC inventory information
redfish_facts :
category : Manager
command : GetManagerNicInventory
baseuri : " {{ baseuri }} "
username : " {{ username }} "
password : " {{ password }} "
- name : Get all information available in the Manager category
- name : Get all information available in the Manager category
redfish_facts :
redfish_facts :
category : Manager
category : Manager
@ -127,7 +135,7 @@ CATEGORY_COMMANDS_ALL = {
" Chassis " : [ " GetFanInventory " ] ,
" Chassis " : [ " GetFanInventory " ] ,
" Accounts " : [ " ListUsers " ] ,
" Accounts " : [ " ListUsers " ] ,
" Update " : [ " GetFirmwareInventory " ] ,
" Update " : [ " GetFirmwareInventory " ] ,
" Manager " : [ " GetManagerAttributes " , " Get Logs" ] ,
" Manager " : [ " GetManagerAttributes " , " Get ManagerNicInventory" , " Get Logs" ] ,
}
}
CATEGORY_COMMANDS_DEFAULT = {
CATEGORY_COMMANDS_DEFAULT = {
@ -208,7 +216,7 @@ def main():
elif command == " GetCpuInventory " :
elif command == " GetCpuInventory " :
result [ " cpu " ] = rf_utils . get_cpu_inventory ( )
result [ " cpu " ] = rf_utils . get_cpu_inventory ( )
elif command == " GetNicInventory " :
elif command == " GetNicInventory " :
result [ " nic " ] = rf_utils . get_nic_inventory ( )
result [ " nic " ] = rf_utils . get_nic_inventory ( category )
elif command == " GetStorageControllerInventory " :
elif command == " GetStorageControllerInventory " :
result [ " storage_controller " ] = rf_utils . get_storage_controller_inventory ( )
result [ " storage_controller " ] = rf_utils . get_storage_controller_inventory ( )
elif command == " GetDiskInventory " :
elif command == " GetDiskInventory " :
@ -257,6 +265,8 @@ def main():
for command in command_list :
for command in command_list :
if command == " GetManagerAttributes " :
if command == " GetManagerAttributes " :
result [ " manager_attributes " ] = rf_utils . get_manager_attributes ( )
result [ " manager_attributes " ] = rf_utils . get_manager_attributes ( )
elif command == " GetManagerNicInventory " :
result [ " manager_nics " ] = rf_utils . get_nic_inventory ( resource_type = category )
elif command == " GetLogs " :
elif command == " GetLogs " :
result [ " log " ] = rf_utils . get_logs ( )
result [ " log " ] = rf_utils . get_logs ( )