Network:Modified create interface to return the D-Bus object ID

Currently, the create interface doesn't return the Object identifier,
this commit is to modify Create Inferface to return the object identifier.

Change-Id: Icbd30481a1173a0c2b8dbe32ba913504555a119a
Signed-off-by: raviteja-b <raviteja28031990@gmail.com>
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index 5416f74..999613d 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -104,8 +104,8 @@
     }
 }
 
-void EthernetInterface::iP(IP::Protocol protType, std::string ipaddress,
-                           uint8_t prefixLength, std::string gateway)
+ObjectPath EthernetInterface::iP(IP::Protocol protType, std::string ipaddress,
+                                 uint8_t prefixLength, std::string gateway)
 {
 
     if (dHCPEnabled())
@@ -152,6 +152,7 @@
                             origin, prefixLength, gateway));
 
     manager.writeToConfigurationFile();
+    return objectPath;
 }
 
 /*