Don't create the IP objects explicitly

IP objects would be created automatically once network
manager detects the address change event.

Resolves openbmc/openbmc#2171
Resolves openbmc/openbmc#2258

Change-Id: I2ac26992ac992f25154f0e1bf34c1faf185c4377
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index 39c12cf..bcb8f6c 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -324,8 +324,6 @@
 
     EthernetInterfaceIntf::dHCPEnabled(value);
     writeConfigurationFile();
-    createIPAddressObjects();
-
     return value;
 }
 
@@ -373,15 +371,12 @@
 
     // write the device file for the vlan interface.
     vlanIntf->writeDeviceFile();
+    vlanIntf->writeConfigurationFile();
 
     this->vlanInterfaces.emplace(vlanInterfaceName,
                                  std::move(vlanIntf));
     // write the new vlan device entry to the configuration(network) file.
     writeConfigurationFile();
-
-    // Create the dbus object for the link local ipv6 address.
-    vlanInterfaces[vlanInterfaceName]->createIPAddressObjects();
-
 }
 
 // Need to merge the below function with the code which writes the