Verify access BMC with both interfaces IP addresses via Redfish

Change-Id: Ia5411a83e83c08696bde85f9ff7237079d7b91b5
Signed-off-by: Anves Kumar rayankula <anvesr77@in.ibm.com>
diff --git a/lib/bmc_network_utils.robot b/lib/bmc_network_utils.robot
index e95c11c..56f1749 100644
--- a/lib/bmc_network_utils.robot
+++ b/lib/bmc_network_utils.robot
@@ -639,3 +639,17 @@
     @{default_gw}=  Split String  ${gateway_list[0]}
 
     [Return]  ${default_gw[2]}
+
+
+Validate Hostname On BMC
+    [Documentation]  Verify that the hostname read via Redfish is the same as the
+    ...  hostname configured on system.
+    [Arguments]  ${hostname}
+
+    # Description of argument(s):
+    # hostname  A hostname value which is to be compared to the hostname
+    #           configured on system.
+
+    ${sys_hostname}=  Get BMC Hostname
+    Should Be Equal  ${sys_hostname}  ${hostname}
+    ...  ignore_case=True  msg=Hostname does not exist.