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/util.hpp b/src/util.hpp
index ae34ad6..1c71eab 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -4,6 +4,7 @@
#include <stdplus/raw.hpp>
#include <stdplus/zstring_view.hpp>
+#include <map>
#include <optional>
#include <string>
#include <string_view>
@@ -72,6 +73,10 @@
bool getDHCPProp(const config::Parser& config, DHCPType dhcpType,
std::string_view key);
+/** @brief Read LLDP configuration from lldpd conf file
+ */
+std::map<std::string, bool> parseLLDPConf();
+
namespace internal
{