Fix network timer issues.

This change includes:
    1. Use network timers defined in resource file.
    2. Increase network timer values.

Resolves openbmc/openbmc-test-automation#1453

Change-Id: I5922c7a9d3cca654a7286c0bb7f6529a23f91853
Signed-off-by: Prashanth Katti <prkatti1@in.ibm.com>
diff --git a/lib/resource.txt b/lib/resource.txt
index 9e2f430..7efe2c0 100755
--- a/lib/resource.txt
+++ b/lib/resource.txt
@@ -48,8 +48,7 @@
 ${NETWORK_PORT}        80
 ${PACKET_TYPE}         tcp
 ${NETWORK_RETRY_TIME}  6
-${NETWORK_TIMEOUT}     12
-
+${NETWORK_TIMEOUT}     18
 # BMC debug tarball parameter
 ${DEBUG_TARBALL_PATH}  ${EMPTY}
 
diff --git a/network/test_mac.robot b/network/test_mac.robot
index 7b3750a..dc34800 100644
--- a/network/test_mac.robot
+++ b/network/test_mac.robot
@@ -141,7 +141,8 @@
     # After any modification on network interface, BMC restarts network
     # module, wait until it is reachable.
 
-    Wait For Host To Ping  ${OPENBMC_HOST}  5  12
+    Wait For Host To Ping  ${OPENBMC_HOST}
+    ...  ${NETWORK_TIMEOUT}  ${NETWORK_RETRY_TIME}
 
     # Verify whether new MAC address is populated on BMC system.
     # It should not allow to configure invalid settings.