diff options
author | William A. Kennington III <wak@google.com> | 2019-04-09 19:06:52 -0700 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2019-04-09 19:18:17 -0700 |
commit | f4b4ff813029e2571447e9c21f51701f88595c3c (patch) | |
tree | 3b61ad60d396e9a2e036c837be77d954bfb9a89d /ethernet_interface.cpp | |
parent | 4966e96e2e3b4d3719d5932fb50e923b39c6c23b (diff) | |
download | phosphor-networkd-f4b4ff813029e2571447e9c21f51701f88595c3c.tar.gz phosphor-networkd-f4b4ff813029e2571447e9c21f51701f88595c3c.zip |
vlan: Modify create method to return an ObjectPath
This will be nice to have for ipmid so that it can easily figure out the
path of the new vlan object when it creates one.
Change-Id: I6b93c5e64499c0cb9e36e8354eda6089bfd6d6c9
Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'ethernet_interface.cpp')
-rw-r--r-- | ethernet_interface.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp index 999613d..154efcb 100644 --- a/ethernet_interface.cpp +++ b/ethernet_interface.cpp @@ -424,7 +424,7 @@ void EthernetInterface::loadVLAN(VlanId id) std::move(vlanIntf)); } -void EthernetInterface::createVLAN(VlanId id) +ObjectPath EthernetInterface::createVLAN(VlanId id) { std::string vlanInterfaceName = interfaceName() + "." + std::to_string(id); std::string path = objPath; @@ -439,6 +439,8 @@ void EthernetInterface::createVLAN(VlanId id) this->vlanInterfaces.emplace(vlanInterfaceName, std::move(vlanIntf)); // write the new vlan device entry to the configuration(network) file. manager.writeToConfigurationFile(); + + return path; } ServerList EthernetInterface::getNTPServersFromConf() |