IPMI in-band network configuration test.

Verify IP address, default gateway,
MAC address, mode with IPMI LAN print.

Resolves openbmc/openbmc-test-automation#937

Change-Id: Iec611a1c24ef924ae6564902894273fd668abc43
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 3b29b5d..081d4b9 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1453,9 +1453,22 @@
     ...  ${time['universal_time_seconds']} - ${time['rtc_time_seconds']}
     Should Be True  ${time_diff} < ${time_diff_max}
 
+
 Watchdog Object Should Exist
     [Documentation]  Check that watchdog object exists.
 
     ${resp}=  OpenBMC Get Request  ${WATCHDOG_URI}host0
     Should Be Equal As Strings  ${resp.status_code}  ${HTTP_OK}
     ...  msg=Expected watchdog object does not exist.
+
+
+Validate IP On BMC
+    [Documentation]  Validate IP address is present in set of IP addresses.
+    [Arguments]  ${ip_address}  ${ip_data}
+
+    # Description of argument(s):
+    # ip_address  IP address to check (e.g. xx.xx.xx.xx).
+    # ip_data     Set of the IP addresses present.
+
+    Should Contain Match  ${ip_data}  ${ip_address}/*
+    ...  msg=${ip_address} not found in the list provided.