From 4f1c18bb5cc820a3e484341f5513a3c943c5e3da Mon Sep 17 00:00:00 2001 From: Ratan Gupta Date: Thu, 25 May 2017 12:59:35 +0530 Subject: Write the network configuration in the network file Change-Id: Ic5ae90fb7b82539b943c4db0bc2eb116ec0d778f Signed-off-by: Ratan Gupta --- ethernet_interface.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ethernet_interface.hpp') 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; -- cgit v1.2.1