XYZ Network: Define the network timer.

This change includes:
    1. Increase wait timer after network add and delete operation.
    2. Define network wait timer in common place.

Resolves openbmc/openbmc-test-automation#1141

Change-Id: If613ab3c1c9331c7a65cb634028534cfa6afb721
Signed-off-by: Prashanth Katti <prkatti1@in.ibm.com>
diff --git a/extended/test_network.robot b/extended/test_network.robot
index 211586a..60ff804 100644
--- a/extended/test_network.robot
+++ b/extended/test_network.robot
@@ -355,7 +355,7 @@
     [Documentation]  Configure lowest prefix length.
     [Tags]  Configure_Lowest_Prefix_Length
 
-    Configure Network Settings  ${valid_ip}  ${0}
+    Configure Network Settings  ${valid_ip}  ${1}
     ...  ${valid_gateway}  valid
 
     # Verify whether new IP object is created for the given IP via REST.
@@ -506,7 +506,8 @@
     # After any modification on network interface, BMC restarts network
     # module, wait until it is reachable.
 
-    Wait For Host To Ping  ${OPENBMC_HOST}  0.3  1
+    Wait For Host To Ping  ${OPENBMC_HOST}  ${NETWORK_RETRY_TIME}
+    ...  ${NETWORK_TIMEOUT}
 
     # Verify whether new IP address is populated on BMC system.
     # It should not allow to configure invalid settings.
diff --git a/lib/bmc_network_utils.robot b/lib/bmc_network_utils.robot
index cccbdd5..fbc5c6f 100644
--- a/lib/bmc_network_utils.robot
+++ b/lib/bmc_network_utils.robot
@@ -156,7 +156,8 @@
     # After any modification on network interface, BMC restarts network
     # module, wait until it is reachable.
 
-    Wait For Host To Ping  ${OPENBMC_HOST}  0.3  1
+    Wait For Host To Ping  ${OPENBMC_HOST}  ${NETWORK_RETRY_TIME}
+    ...  ${NETWORK_TIMEOUT}
 
     # Verify whether deleted IP address is removed from BMC system.
 
diff --git a/lib/resource.txt b/lib/resource.txt
index 4dc06ea..a9ad430 100755
--- a/lib/resource.txt
+++ b/lib/resource.txt
@@ -41,8 +41,10 @@
 ${OS_WAIT_TIMEOUT}  ${15*60}
 
 # Networking related parameters
-${NETWORK_PORT}     80
-${PACKET_TYPE}      tcp
+${NETWORK_PORT}        80
+${PACKET_TYPE}         tcp
+${NETWORK_RETRY_TIME}  6
+${NETWORK_TIMEOUT}     12
 
 # BMC debug tarball parameter
 ${DEBUG_TARBALL_PATH}  ${EMPTY}