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>
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 @@
*/
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.