Added testcases for DHCPv4 toggle and CT fix
Changes:
Verify DHCPv4 Enable And Disable On Eth1 Via GUI
Tested:
Ran and Tested on BMC Environment
Change-Id: Ia2e98f0748197f30a0eaef318748f71820a33958
Signed-off-by: Feroz M A <m.a.feroz@ibm.com>
diff --git a/lib/bmc_ipv6_utils.robot b/lib/bmc_ipv6_utils.robot
index 1868907..0657f95 100644
--- a/lib/bmc_ipv6_utils.robot
+++ b/lib/bmc_ipv6_utils.robot
@@ -127,4 +127,27 @@
... Get Address Origin List And Address For Type ${ipv6_address_type}
Should Contain ${ipv6_address_origin_list} ${ipv6_address_type}
Should Not Be Empty ${ipv6_type_addr} msg=${ipv6_address_type} address is not present
- END
\ No newline at end of file
+ END
+
+
+Get Address Origin List And IPv4 or IPv6 Address
+ [Documentation] Get address origin list and address for type.
+ [Arguments] ${ip_address_type} ${channel_number}=${CHANNEL_NUMBER}
+
+ # Description of the argument(s):
+ # ip_address_type Type of IPv4 or 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']}
+ @{ip_addresses}= Get From Dictionary ${resp.dict} ${ip_address_type}
+
+ ${ip_addressorigin_list}= Create List
+ ${ip_addr_list}= Create List
+ FOR ${ip_address} IN @{ip_addresses}
+ ${ip_addressorigin}= Get From Dictionary ${ip_address} AddressOrigin
+ Append To List ${ip_addressorigin_list} ${ip_addressorigin}
+ Append To List ${ip_addr_list} ${ip_address['Address']}
+ END
+ RETURN ${ip_addressorigin_list} ${ip_addr_list}
\ No newline at end of file