summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.hpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-08-13 17:49:56 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-08-13 17:56:49 +0530
commitda7d3afabfc90a8dd918baf9906b97f39777bfcc (patch)
tree65c0ee55545abd70e3cbfb76e412279979486335 /ethernet_interface.hpp
parent2aca45c01e84ab308475f216f95aba55bfe925be (diff)
downloadphosphor-networkd-da7d3afabfc90a8dd918baf9906b97f39777bfcc.tar.gz
phosphor-networkd-da7d3afabfc90a8dd918baf9906b97f39777bfcc.zip
EthernetInterface: Simplify the code to fetch the mac address
Change-Id: I7db6b2379e1794019a8676048ee7dcf3de262a6d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r--ethernet_interface.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp
index 29d377e..5283da4 100644
--- a/ethernet_interface.hpp
+++ b/ethernet_interface.hpp
@@ -140,10 +140,11 @@ class EthernetInterface : public Ifaces
InterfaceInfo getInterfaceInfo() const;
/** @brief get the mac address of the interface.
+ * @param[in] interfaceName - Network interface name.
* @return macaddress on success
*/
- std::string getMACAddress() const;
+ std::string getMACAddress(const std::string& interfaceName) const;
/** @brief construct the ip address dbus object path.
* @param[in] addressType - Type of ip address.
OpenPOWER on IntegriCloud