summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-07-25 16:05:02 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-08-13 11:32:33 +0000
commit2b1065328b4fc8131dc5bd2509a326ad68006617 (patch)
treecf2810abc264fcadbe6179020f43bcccf7d37b64 /ethernet_interface.hpp
parent5978dd11cba74452d6550399191195c9617c2984 (diff)
downloadphosphor-networkd-2b1065328b4fc8131dc5bd2509a326ad68006617.tar.gz
phosphor-networkd-2b1065328b4fc8131dc5bd2509a326ad68006617.zip
Move the implementation for writing conf to interface class
implementation of writing interface conf to the ethernet interface class. Change-Id: I279afff45a82ca92c4e50810664f7a7c69a66a61 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r--ethernet_interface.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp
index 0ab849c..4617f56 100644
--- a/ethernet_interface.hpp
+++ b/ethernet_interface.hpp
@@ -113,12 +113,14 @@ class EthernetInterface : public Ifaces
*/
void createVLAN(VlanId id);
+ /** @brief write the network conf file with the in-memory objects.
+ */
+ void writeConfigurationFile();
+
+
using EthernetInterfaceIntf::dHCPEnabled;
using EthernetInterfaceIntf::interfaceName;
- /** @brief Network Configuration directory. */
- fs::path confDir;
-
protected:
/** @brief get the info of the ethernet interface.
@@ -159,6 +161,9 @@ class EthernetInterface : public Ifaces
uint8_t prefixLength,
const std::string& gateway);
+ /** @brief write the dhcp section **/
+ void writeDHCPSection(std::fstream& stream);;
+
/** @brief Persistent sdbusplus DBus bus connection. */
sdbusplus::bus::bus& bus;
OpenPOWER on IntegriCloud