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>
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index d0c9a37..04759fe 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1845,6 +1845,9 @@
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},