summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-08-18 17:10:07 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-09-09 00:44:57 +0530
commitbd303b1097695f6e6ddadef96d64476830fbdc19 (patch)
tree930362073665d9a0d1c881f07eb5d4e7c4ba580b /ethernet_interface.hpp
parent4f67dac2061f5fafbae83aba9d44029b994275a7 (diff)
downloadphosphor-networkd-bd303b1097695f6e6ddadef96d64476830fbdc19.tar.gz
phosphor-networkd-bd303b1097695f6e6ddadef96d64476830fbdc19.zip
Implement Set function for MAC address
Change-Id: I16992dda259246a66512792f06cbbb874e56a15d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r--ethernet_interface.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp
index 5283da4..3a746d2 100644
--- a/ethernet_interface.hpp
+++ b/ethernet_interface.hpp
@@ -27,6 +27,8 @@ using IP = sdbusplus::xyz::openbmc_project::Network::server::IP;
using EthernetInterfaceIntf =
sdbusplus::xyz::openbmc_project::Network::server::EthernetInterface;
+using MacAddressIntf =
+ sdbusplus::xyz::openbmc_project::Network::server::MACAddress;
namespace fs = std::experimental::filesystem;
@@ -113,6 +115,12 @@ class EthernetInterface : public Ifaces
/** Set value of DHCPEnabled */
bool dHCPEnabled(bool value) override;
+ /** @brief sets the MAC address.
+ * @param[in] value - MAC address which needs to be set on the system.
+ * @returns macAddress of the interface.
+ */
+ std::string mACAddress(std::string value) override;
+
/** @brief create Vlan interface.
* @param[in] id- VLAN identifier.
*/
@@ -130,6 +138,7 @@ class EthernetInterface : public Ifaces
using EthernetInterfaceIntf::dHCPEnabled;
using EthernetInterfaceIntf::interfaceName;
+ using MacAddressIntf::mACAddress;
protected:
OpenPOWER on IntegriCloud