summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-08-22 19:15:59 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-10-11 18:17:17 +0530
commit497c0c9f28b33b48a485a0ab319896ac758994d4 (patch)
treeeca51529ecf6a24b62ca71506460313b34b754ac /ethernet_interface.hpp
parent16f12886cc31a81e48ef9ed8cdcef4a1599bdeac (diff)
downloadphosphor-networkd-497c0c9f28b33b48a485a0ab319896ac758994d4.tar.gz
phosphor-networkd-497c0c9f28b33b48a485a0ab319896ac758994d4.zip
Implement configuration of NTP server support
Change-Id: I8d471dbc6ea7ec62cbcc157565a7b39cd5031caa Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r--ethernet_interface.hpp12
1 files changed, 12 insertions, 0 deletions
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 EthernetInterfaceIntf =
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 @@ class EthernetInterface : public Ifaces
*/
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 @@ class EthernetInterface : public Ifaces
/** @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;
OpenPOWER on IntegriCloud