summaryrefslogtreecommitdiff
path: root/redfish-core/lib/ethernet.hpp
diff options
context:
space:
mode:
authorJohnathan Mantey <johnathanx.mantey@intel.com>2020-05-14 01:14:47 +0300
committerJohnathan Mantey <johnathanx.mantey@intel.com>2020-05-14 23:41:52 +0300
commit5fd16e4b9c2755f3e3bd6386b79ab307d9ad24a1 (patch)
tree497ae218c1b60fb296c071c138d4f8615c2e7876 /redfish-core/lib/ethernet.hpp
parente105acc29fc0cdb0c86dd47cc28a41dcba8c27f3 (diff)
downloadbmcweb-5fd16e4b9c2755f3e3bd6386b79ab307d9ad24a1.tar.xz
Create the IPv6 AddressState Redfish node for OCP
The Open Compute Project defines the IPv6 AddressState entry to be a mandatory field. OpenBMC does not have any support in phosphor-network for reporting the actual IPv6 state. The AddressState field is allowed to be null. This commit returns the AddressState as a null. Tested: Ran service validator Ran a GET on Managers/bmc/EthernetInterfaces/eth0 and saw the addition of the AddressState, and that it was null. Change-Id: Ia2847f94ac73fc05ff2ca1be40a3f601fa0a3dfc Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r--redfish-core/lib/ethernet.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index b32520b92e..d0c9a37e22 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1849,13 +1849,15 @@ class EthernetInterface : public Node
{
ipv6_array.push_back({{"Address", ipv6_config.address},
{"PrefixLength", ipv6_config.prefixLength},
- {"AddressOrigin", ipv6_config.origin}});
+ {"AddressOrigin", ipv6_config.origin},
+ {"AddressState", nullptr}});
if (ipv6_config.origin == "Static")
{
ipv6_static_array.push_back(
{{"Address", ipv6_config.address},
{"PrefixLength", ipv6_config.prefixLength},
- {"AddressOrigin", ipv6_config.origin}});
+ {"AddressOrigin", ipv6_config.origin},
+ {"AddressState", nullptr}});
}
}
}