Add LLDP configuration support
This commit implements EmitLLDP D-bus property to support configuration
of enable/disable LLDP of each ethernet interface.
Tested by:
Set EmitLLDP D-bus property on
xyz.openbmc_project.Network.EthernetInterface
Change-Id: I4ebedff9d3f914219f2f84c861fdee126584a94b
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/src/network_manager.hpp b/src/network_manager.hpp
index b92c528..3bc8ad2 100644
--- a/src/network_manager.hpp
+++ b/src/network_manager.hpp
@@ -55,6 +55,10 @@
*/
void writeToConfigurationFile();
+ /** @brief write the lldp conf file
+ */
+ void writeLLDPDConfigurationFile();
+
/** @brief Adds a single interface to the interface map */
void addInterface(const InterfaceInfo& info);
void removeInterface(const InterfaceInfo& info);
@@ -102,6 +106,10 @@
reload.get().schedule();
}
+ /** Reload LLDP configuration
+ */
+ void reloadLLDPService();
+
/** @brief Persistent map of EthernetInterface dbus objects and their names
*/
stdplus::string_umap<std::unique_ptr<EthernetInterface>> interfaces;