Add more DHCP attributes while writing the configuration file
Added the attribute "SendHostname", when it is true machine's hostname
will be included in DHCP packet.
Change-Id: I9bf5f76980f152d48f7f3acf7448c8bc199905bb
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/dhcp_configuration.cpp b/dhcp_configuration.cpp
index 9e88e7c..9eeea1e 100644
--- a/dhcp_configuration.cpp
+++ b/dhcp_configuration.cpp
@@ -9,6 +9,19 @@
namespace dhcp
{
+bool Configuration::sendHostNameEnabled(bool value)
+{
+ if (value == sendHostNameEnabled())
+ {
+ return value;
+ }
+
+ auto name = ConfigIntf::sendHostNameEnabled(value);
+ manager.writeToConfigurationFile();
+
+ return name;
+}
+
bool Configuration::hostNameEnabled(bool value)
{
if (value == hostNameEnabled())