diff options
author | Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com> | 2021-03-22 13:08:00 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-03-22 20:26:01 +0300 |
commit | 8f7e9c194f36a84f4e49ad142110f4f3d0f312be (patch) | |
tree | 9e392db206f2809afdb33a9330a65306fb8cab8a /redfish-core/lib/ethernet.hpp | |
parent | 64face749ab8eabcc7c9007d8b6c1e2863f7bbe2 (diff) | |
download | bmcweb-8f7e9c194f36a84f4e49ad142110f4f3d0f312be.tar.xz |
ethernet: Fix for MAC address patch response
While Patching MAC address from Redfish, response is showing
as empty but HTTPS status code is "200 OK" on successful case.
So provided fix for Proper response on Success.
Tested:
1. Verified RedFish validator passed
2. Verified the response on Redfish by updating MAC address.
PATCH: https://<bmc_ip>/redfish/v1/Managers/bmc/EthernetInterfaces/eth0
Body:
{
"MACAddress": "xx:xx:xx:xx:xx:xx"
}
Response:
{
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "Successfully Completed Request",
"MessageArgs": [],
"MessageId": "Base.1.8.1.Success",
"MessageSeverity": "OK",
"Resolution": "None"
}
]
}
Signed-off-by: Sunita Kumari <sunitax.kumari@intel.com>
Signed-off-by: Jayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
Change-Id: I91a34f414b854593b4873e4ed923734030d6562d
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index cd0584cc02..f7cffcc645 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -1212,6 +1212,7 @@ class EthernetInterface : public Node messages::internalError(asyncResp->res); return; } + messages::success(asyncResp->res); }, "xyz.openbmc_project.Network", "/xyz/openbmc_project/network/" + ifaceId, |