summaryrefslogtreecommitdiff
path: root/redfish-core/lib/ethernet.hpp
diff options
context:
space:
mode:
authorJohnathan Mantey <johnathanx.mantey@intel.com>2020-05-14 23:36:52 +0300
committerJohnathan Mantey <johnathanx.mantey@intel.com>2020-05-16 00:02:55 +0300
commit7f2e23e9d4fd2ee6c41811f4d3f2c839fc65e8d0 (patch)
treee46730d28a910e261fb0375bea574040d28ffed2 /redfish-core/lib/ethernet.hpp
parentab41ea10f7639cbcedc4cacbeb8530635eefc99c (diff)
downloadbmcweb-7f2e23e9d4fd2ee6c41811f4d3f2c839fc65e8d0.tar.xz
Add OCP mandatory entry for IPv6AddressPolicyTable
The Open Compute Project mandates the presence of the IPv6AddrssPolicyTable collection in Redfish. This commit adds the mandatory collection as an empty collection. Tested: Ran redfish service validator and confirmed the table collection was found. Change-Id: I6e98295f2a33acd49a3bb01d97aa840525875dd2 Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r--redfish-core/lib/ethernet.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index d0c9a37e22..04759fe85b 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1845,6 +1845,9 @@ class EthernetInterface : public Node
json_response["IPv6StaticAddresses"];
ipv6_array = nlohmann::json::array();
ipv6_static_array = nlohmann::json::array();
+ nlohmann::json &ipv6AddrPolicyTable =
+ json_response["IPv6AddressPolicyTable"];
+ ipv6AddrPolicyTable = nlohmann::json::array();
for (auto &ipv6_config : ipv6Data)
{
ipv6_array.push_back({{"Address", ipv6_config.address},