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
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index b1a9f69..21443f4 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -65,6 +65,7 @@
std::string netmask;
std::string origin;
LinkType linktype;
+ bool isActive;
bool operator<(const IPv4AddressData& obj) const
{