Modify MAC and Verify BMC Reinitializing Linklocal
Changes:
Modify MAC and Verify BMC Reinitializing Linklocal
Tested:
Ran and Tested on BMC Environment.
Change-Id: Ic65a2fe6c67d04a9b6026071c8ad19fd3679a717
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/redfish/managers/test_bmc_ipv6.robot b/redfish/managers/test_bmc_ipv6.robot
index e508544..73d50a7 100644
--- a/redfish/managers/test_bmc_ipv6.robot
+++ b/redfish/managers/test_bmc_ipv6.robot
@@ -6,6 +6,7 @@
Resource ../../lib/openbmc_ffdc.robot
Resource ../../lib/bmc_ipv6_utils.robot
Resource ../../lib/external_intf/vmi_utils.robot
+Resource ../../lib/bmc_network_utils.robot
Library ../../lib/bmc_network_utils.py
Library Collections
Library Process
@@ -29,6 +30,7 @@
${prefix_length_def} None
${invalid_staticv6_gateway} 9.41.164.1
${linklocal_addr_format} fe80::[0-9a-f:]+$
+${new_mac_addr} AA:E2:84:14:28:79
*** Test Cases ***
@@ -275,6 +277,25 @@
... msg=IPv6 Linklocal address has changed after reboot.
+Modify MAC and Verify BMC Reinitializing Linklocal
+ [Documentation] Modify MAC and verify BMC reinitializing linklocal.
+ [Tags] Modify_MAC_and_Verify_BMC_Reinitializing_Linklocal
+ [Teardown] Configure MAC Settings ${original_address}
+
+ ${original_address}= Get BMC MAC Address
+ @{ipv6_addressorigin_list} ${ipv6_before_linklocal_addr}= Get Address Origin List And Address For Type LinkLocal
+
+ # Modify MAC Address Of Ethernet Interface.
+ Configure MAC Settings ${new_mac_addr}
+ Sleep 30s
+ Wait For Host To Ping ${OPENBMC_HOST} ${NETWORK_TIMEOUT}
+ @{ipv6_addressorigin_list} ${ipv6_linklocal_after_addr}= Get Address Origin List And Address For Type LinkLocal
+
+ # Verify whether the linklocal has changed and is in the the correct format.
+ Check If Linklocal Address Is In Correct Format
+ Should Not Be Equal ${ipv6_before_linklocal_addr} ${ipv6_linklocal_after_addr}
+
+
*** Keywords ***
Suite Setup Execution