Modified Verify System Section In Network Setting page

Change-Id: I86a1b25fa837c991c482e8204c27c31f480d5639
Signed-off-by: Anves Kumar rayankula <anvesr77@in.ibm.com>
diff --git a/gui/gui_test/server_config/test_obmc_gui_network_settings.robot b/gui/gui_test/server_config/test_obmc_gui_network_settings.robot
index b98ca6b..1b9f9a2 100644
--- a/gui/gui_test/server_config/test_obmc_gui_network_settings.robot
+++ b/gui/gui_test/server_config/test_obmc_gui_network_settings.robot
@@ -104,11 +104,11 @@
 
 Verify System Section In Network Setting page
     [Documentation]  Verify hostname, MAC address and default gateway
-    ... under system section of network setting page.
+    ...  under system section of network setting page.
     [Tags]  Verify_System_Section
 
-    ${host_name}  ${ip_address}=  Get Host Name IP  host=${OPENBMC_HOST}
-    Textfield Value Should Be  ${xpath_hostname_input}  ${hostname}
+    ${host_name}=  Redfish_Utils.Get Attribute  ${REDFISH_NW_PROTOCOL_URI}  HostName
+    Textfield Value Should Be  ${xpath_hostname_input}  ${hos_name}
 
     ${mac_address}=  Get BMC MAC Address
     Textfield Value Should Be   ${xpath_mac_address_input}  ${mac_address}