Added a check to make sure that REST server is up and running after IP and MAC configuration

Resolves openbmc/openbmc-test-automation#83

Change-Id: I494ebc5fccdd2dd7b57f239ac7d93e3c83b23004
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/tests/test_networkd.robot b/tests/test_networkd.robot
index a7927e1..974e89d 100755
--- a/tests/test_networkd.robot
+++ b/tests/test_networkd.robot
@@ -188,6 +188,8 @@
 
     Wait For Host To Ping       ${CURRENT_IP}
 
+    Wait Until Keyword Succeeds    30 sec    5 sec    Initialize OpenBMC
+
     @{arglist}=   Create List   eth0
     ${args}=     Create Dictionary   data=@{arglist}
     ${resp}=    Call Method    /org/openbmc/NetworkManager/Interface/   GetAddressType    data=${args}
@@ -298,6 +300,8 @@
     should be equal as strings      ${json['status']}       ${result}
     Wait For Host To Ping      ${OPENBMC_HOST}
 
+    Wait Until Keyword Succeeds    30 sec    5 sec    Initialize OpenBMC
+
     @{arglist}=   Create List   ${intf}
     ${args}=     Create Dictionary   data=@{arglist}
     ${resp}=   Call Method    /org/openbmc/NetworkManager/Interface/    GetHwAddress    data=${args}