summaryrefslogtreecommitdiff
path: root/redfish-core/lib/ethernet.hpp
diff options
context:
space:
mode:
authorSunitha Harish <sunithaharish04@gmail.com>2020-03-20 13:04:09 +0300
committerSunitha Harish <sunithaharish04@gmail.com>2020-08-03 07:48:16 +0300
commit01c6e8581bf44551bbb24d156fc191f87b1cdeea (patch)
treef8f9bb188937fecf5e82e5ff007b08c8cbd0ca56 /redfish-core/lib/ethernet.hpp
parent30c58d581606b4484757e6ee9133c248de1514a6 (diff)
downloadbmcweb-01c6e8581bf44551bbb24d156fc191f87b1cdeea.tar.xz
Redfish: GET command for Hypervisor DHCP network
This commit adds support to GET the DHCP configuration details on the Hypervisor's Ethernet Interface Tested by: Set the DHCPEnabled property on /xyz/openbmc_project/network/hypervisor/eth0 Run the redfish GET command below to check the value set. GET https://${bmc}/redfish/v1/Systems/hypervisor/EthernetInterfaces/eth0 Successfully ran the Redfish Validator Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com> Change-Id: Iacfc2b975fc6e4b759082419aa8f0b9c193d7787
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r--redfish-core/lib/ethernet.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index b1a9f695bb..21443f416a 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -65,6 +65,7 @@ struct IPv4AddressData
std::string netmask;
std::string origin;
LinkType linktype;
+ bool isActive;
bool operator<(const IPv4AddressData& obj) const
{