diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-07-25 18:29:57 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-13 11:32:44 +0000 |
commit | bc8862927b05030b249175891dc338d044eb17dd (patch) | |
tree | dbc2289ff0c31d98f210565042206a2529f1f688 /ethernet_interface.hpp | |
parent | 92bc2fe4663b8a9e2a38084692dc9587762926f9 (diff) | |
download | phosphor-networkd-bc8862927b05030b249175891dc338d044eb17dd.tar.gz phosphor-networkd-bc8862927b05030b249175891dc338d044eb17dd.zip |
vlan: implement delete interface
Delete the in-memory vlan object,Also
deletes the associated device file and the
network file.
Change-Id: I613e31aaa4fa9172c6226765ac044481ffbd88ec
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r-- | ethernet_interface.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp index 36669d6..29d377e 100644 --- a/ethernet_interface.hpp +++ b/ethernet_interface.hpp @@ -9,7 +9,6 @@ #include <sdbusplus/bus.hpp> #include <sdbusplus/server/object.hpp> - #include <string> #include <experimental/filesystem> @@ -94,6 +93,12 @@ class EthernetInterface : public Ifaces */ void deleteObject(const std::string& ipaddress); + /* @brief delete the vlan dbus object of the given interface. + * Also deletes the device file and the network file. + * @param[in] interface - VLAN Interface. + */ + void deleteVLANObject(const std::string& interface); + /* @brief creates the dbus object(IPaddres) given in the address list. * @param[in] addrs - address list for which dbus objects needs * to create. |