Add case to test Get Lan Configuration Parameters
Signed-off-by: Tony Lee <tony.lee@quantatw.com>
Change-Id: I2d81b5b54906b19afee79dd11c4352d7cde6acf7
diff --git a/ipmi/test_ipmi_network_verificaton.robot b/ipmi/test_ipmi_network_verificaton.robot
index 39bac45..5a1aaf6 100644
--- a/ipmi/test_ipmi_network_verificaton.robot
+++ b/ipmi/test_ipmi_network_verificaton.robot
@@ -8,6 +8,7 @@
Library ../lib/gen_robot_valid.py
Library ../lib/var_funcs.py
Library ../lib/bmc_network_utils.py
+Variables ../data/ipmi_raw_cmd_table.py
Suite Setup Redfish.Login
Test Setup Printn
@@ -98,6 +99,56 @@
Valid Value lan_config['IP Address Source'] ['${ip_address_source}']
+Verify Get Set In Progress
+ [Documentation] Verify Get Set In Progress which belongs to LAN Configuration Parameters
+ ... via IPMI raw Command.
+
+ ${ipmi_output}= Run IPMI Command
+ ... ${IPMI_RAW_CMD['LAN_Config_Params']['Get'][0]} ${CHANNEL_NUMBER} 0x00 0x00 0x00
+
+ ${ipmi_output}= Split String ${ipmi_output}
+ ${set_in_progress_value}= Set Variable ${ipmi_output[1]}
+
+ # 00b = set complete.
+ # 01b = set in progress.
+ Should Contain Any ${set_in_progress_value} 00 01
+
+
+Verify Cipher Suite Entry Count
+ [Documentation] Verify cipher suite entry count which belongs to LAN Configuration Parameters
+ ... via IPMI raw Command.
+
+ ${ipmi_output}= Run IPMI Command
+ ... ${IPMI_RAW_CMD['LAN_Config_Params']['Get'][0]} ${CHANNEL_NUMBER} 0x16 0x00 0x00
+ ${cipher_suite_entry_count}= Split String ${ipmi_output}
+
+ # Convert minor cipher suite entry count from BCD format to integer. i.e. 01 to 1.
+ ${cipher_suite_entry_count[1]}= Convert To Integer ${cipher_suite_entry_count[1]}
+ ${cnt}= Get length ${valid_ciphers}
+
+ Should be Equal ${cipher_suite_entry_count[1]} ${cnt}
+
+
+Verify Authentication Type Support
+ [Documentation] Verify authentication type support which belongs to LAN Configuration Parameters
+ ... via IPMI raw Command.
+
+ ${ipmi_output}= Run IPMI Command
+ ... ${IPMI_RAW_CMD['LAN_Config_Params']['Get'][0]} ${CHANNEL_NUMBER} 0x01 0x00 0x00
+
+ ${authentication_type_support}= Split String ${ipmi_output}
+ # All bits:
+ # 1b = supported
+ # 0b = authentication type not available for use
+ # [5] - OEM proprietary (per OEM identified by the IANA OEM ID in the RMCP Ping Response)
+ # [4] - straight password / key
+ # [3] - reserved
+ # [2] - MD5
+ # [1] - MD2
+ # [0] - none
+ Should Contain Any ${authentication_type_support[1]} 00 01 02 03 04 05
+
+
*** Keywords ***
Get Physical Network Interface Count