summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.hpp
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2018-06-19 16:02:17 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-06-20 12:38:24 -0500
commit90480c46bbc9f8c9fddcc6296ea6d8a728f276b7 (patch)
treeadaedfd5d0fe44bccbe883253369a39c8a479760 /ethernet_interface.hpp
parent02653ca867156d01e0784474cbb539ddfc149472 (diff)
downloadphosphor-networkd-90480c46bbc9f8c9fddcc6296ea6d8a728f276b7.tar.gz
phosphor-networkd-90480c46bbc9f8c9fddcc6296ea6d8a728f276b7.zip
Throw error when invalid MAC Address is set
sdbusplus supports errors on properties, so we can now throw exceptions on such cases as invalid parameters. Also changed the journal log levels to ERR. Tested: Built an image and see invalid parameter errors on values like garbage MAC addresses and non-admin MAC Addresses. Change-Id: I69687bbf34fe51f0c812f40dfc99bb88ce141a2f Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'ethernet_interface.hpp')
-rw-r--r--ethernet_interface.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethernet_interface.hpp b/ethernet_interface.hpp
index 5109e42..caa042e 100644
--- a/ethernet_interface.hpp
+++ b/ethernet_interface.hpp
@@ -121,7 +121,7 @@ class EthernetInterface : public Ifaces
/** @brief sets the MAC address.
* @param[in] value - MAC address which needs to be set on the system.
- * @returns macAddress of the interface.
+ * @returns macAddress of the interface or throws an error.
*/
std::string mACAddress(std::string value) override;
OpenPOWER on IntegriCloud