Fix failing setup and teardown

Reason for the change:

   - When IP addresses not found it will not do Delete IP in test setup.
   - When IP Addresses not found it will not restore IP in test teardown.

Change-Id: Ie0fcc31fb2ffda3f032b53a681d6661103b0a0c4
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 2872595..84a264e 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
@@ -432,7 +432,7 @@
     Set Suite Variable  ${netmask_data}
 
     # Delete existing static IPv4 addresses and netmask if avilable.
-    Run keyword if  ${ip_data} == @{empty} and ${netmask_data} == @{empty}
+    Run Keyword If  ${ip_data} != @{empty} and ${netmask_data} != @{empty}
     ...  Delete And Verify Static IP Address On BMC
 
 
@@ -443,7 +443,7 @@
     ${netmask_length}=  Get Length  ${netmask_data}
 
     # Restore existing IPv4 addresses and netmasks if any..
-    Run keyword If  ${ip_length} == ${0} and ${netmask_length} == ${0}
+    Run Keyword If  ${ip_length} != ${0} and ${netmask_length} != ${0}
     ...  Add Static IP Address And Verify  ${ip_data}  ${netmask_data}