diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-09-08 17:34:07 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@in.ibm.com> | 2017-09-13 17:29:03 +0530 |
commit | 96699b71b5d45f87772134391dd2ded33ecb5789 (patch) | |
tree | 52e4c71de434582bcff6830dd9b073ac2f84dd9f /ethernet_interface.cpp | |
parent | a54d8f8023a42555c549b3e60c1d45e5e2414559 (diff) | |
download | phosphor-networkd-96699b71b5d45f87772134391dd2ded33ecb5789.tar.gz phosphor-networkd-96699b71b5d45f87772134391dd2ded33ecb5789.zip |
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>
Diffstat (limited to 'ethernet_interface.cpp')
-rw-r--r-- | ethernet_interface.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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 @@ bool EthernetInterface::dHCPEnabled(bool value) EthernetInterfaceIntf::dHCPEnabled(value); writeConfigurationFile(); - createIPAddressObjects(); - return value; } @@ -373,15 +371,12 @@ void EthernetInterface::createVLAN(VlanId id) // 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 |