Enable/ Disable SLAAC on eth0/ eth1
Changes:
Enable/ Disable cases on eth0/ eth1 for SLAAC.
Tested:
Ran and Tested on BMC Environment.
Change-Id: Ic4457ac867f9b101cbe88ed7f9ce510f1f026e5a
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/bmc_ipv6_utils.robot b/lib/bmc_ipv6_utils.robot
index c393583..1868907 100644
--- a/lib/bmc_ipv6_utils.robot
+++ b/lib/bmc_ipv6_utils.robot
@@ -91,18 +91,18 @@
Get Address Origin List And Address For Type
[Documentation] Get address origin list and address for type.
- [Arguments] ${ipv6_address_type}
+ [Arguments] ${ipv6_address_type} ${channel_number}=${CHANNEL_NUMBER}
# Description of the argument(s):
# ipv6_address_type Type of IPv6 address to be checked.
+ # channel_number Channel number 1(eth0) or 2(eth1).
${active_channel_config}= Get Active Channel Config
- ${ethernet_interface}= Set Variable ${active_channel_config['${CHANNEL_NUMBER}']['name']}
- ${resp}= Redfish.Get ${REDFISH_NW_ETH_IFACE}${active_channel_config['${CHANNEL_NUMBER}']['name']}
+ ${ethernet_interface}= Set Variable ${active_channel_config['${channel_number}']['name']}
+ ${resp}= Redfish.Get ${REDFISH_NW_ETH_IFACE}${active_channel_config['${channel_number}']['name']}
@{ipv6_addresses}= Get From Dictionary ${resp.dict} IPv6Addresses
${ipv6_addressorigin_list}= Create List
- ${ipv6_slaac_addr}= Set Variable ${None}
FOR ${ipv6_address} IN @{ipv6_addresses}
${ipv6_addressorigin}= Get From Dictionary ${ipv6_address} AddressOrigin
Append To List ${ipv6_addressorigin_list} ${ipv6_addressorigin}