Implement configuration of NTP server support
Change-Id: I8d471dbc6ea7ec62cbcc157565a7b39cd5031caa
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp
index 06a2e5f..8ef1795 100644
--- a/ethernet_interface.hpp
+++ b/ethernet_interface.hpp
@@ -32,6 +32,8 @@
using MacAddressIntf =
sdbusplus::xyz::openbmc_project::Network::server::MACAddress;
+using ServerList = std::vector<std::string>;
+
namespace fs = std::experimental::filesystem;
class Manager; // forward declaration of network manager.
@@ -123,6 +125,11 @@
*/
std::string mACAddress(std::string value) override;
+ /** @brief sets the NTP servers.
+ * @param[in] value - vector of NTP servers.
+ */
+ ServerList nTPServers(ServerList value) override;
+
/** @brief create Vlan interface.
* @param[in] id- VLAN identifier.
*/
@@ -193,6 +200,11 @@
/** @brief write the dhcp section **/
void writeDHCPSection(std::fstream& stream);;
+ /** @brief get the NTP server list from the network conf
+ *
+ */
+ ServerList getNTPServersFromConf();
+
/** @brief Persistent sdbusplus DBus bus connection. */
sdbusplus::bus::bus& bus;