Revert "ethernet: Fix premature gateway clearing on static IP validation fail"

This reverts commit 8d26c0d3a9bf14f5ad36b89db3fd3ce0d428655c.

Reason for revert: This is causing the Gateway to clear while assigning the static IP

Change-Id: Ie7878e3ed25c2907fdf6e7bcb7a2a26aea78a367
Signed-off-by: Chandramohan Harkude <chandramohan.harkude@gmail.com>
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 31693e1..53e21c5 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -2416,12 +2416,6 @@
                             return;
                         }
 
-                        if (ipv4StaticAddresses)
-                        {
-                            handleIPv4StaticPatch(ifaceId, *ipv4StaticAddresses,
-                                                  ethData, ipv4Data, asyncResp);
-                        }
-
                         handleDHCPPatch(ifaceId, ethData, v4dhcpParms,
                                         v6dhcpParms, asyncResp);
 
@@ -2447,6 +2441,12 @@
                                                   asyncResp);
                         }
 
+                        if (ipv4StaticAddresses)
+                        {
+                            handleIPv4StaticPatch(ifaceId, *ipv4StaticAddresses,
+                                                  ethData, ipv4Data, asyncResp);
+                        }
+
                         if (staticNameServers)
                         {
                             handleStaticNameServersPatch(