diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-05-25 12:59:35 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-08 13:41:37 +0000 |
commit | 4f1c18bb5cc820a3e484341f5513a3c943c5e3da (patch) | |
tree | f26d2562adce9855a2a3aaaff1830f46ecf901c0 /ethernet_interface.hpp | |
parent | 29b0e439c1536dff4348202069b568795367f108 (diff) | |
download | phosphor-networkd-4f1c18bb5cc820a3e484341f5513a3c943c5e3da.tar.gz phosphor-networkd-4f1c18bb5cc820a3e484341f5513a3c943c5e3da.zip |
Write the network configuration in the network file
Change-Id: Ic5ae90fb7b82539b943c4db0bc2eb116ec0d778f
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r-- | ethernet_interface.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp index c755f06..7fb7cf1 100644 --- a/ethernet_interface.hpp +++ b/ethernet_interface.hpp @@ -23,6 +23,7 @@ using Ifaces = sdbusplus::xyz::openbmc_project::Network::IP::server::Create>; using IP = sdbusplus::xyz::openbmc_project::Network::server::IP; +class Manager; // forward declaration of network manager. using LinkSpeed = uint16_t; using DuplexMode = uint8_t; @@ -49,10 +50,12 @@ class EthernetInterface : public Ifaces * @param[in] bus - Bus to attach to. * @param[in] objPath - Path to attach at. * @param[in] dhcpEnabled - is dhcp enabled(true/false). + * @param[in] parent - parent object. */ EthernetInterface(sdbusplus::bus::bus& bus, const std::string& objPath, - bool dhcpEnabled); + bool dhcpEnabled, + Manager& parent); /** @brief Function to create ipaddress dbus object. * @param[in] addressType - Type of ip address. @@ -125,6 +128,9 @@ class EthernetInterface : public Ifaces /** @brief Persistent sdbusplus DBus bus connection. */ sdbusplus::bus::bus& bus; + /** @brief Network Manager object. */ + Manager& manager; + /** @brief Persistent map of IPAddress dbus objects and their names */ AddressMap addrs; |