summaryrefslogtreecommitdiff
path: root/redfish-core/lib/ethernet.hpp
diff options
context:
space:
mode:
authorManojkiran Eda <manojkiran.eda@gmail.com>2019-08-27 11:53:10 +0300
committerManojkiran Eda <manojkiran.eda@gmail.com>2019-08-27 12:39:08 +0300
commitf1a3caee32574f0d17fbaa8995d387e537c4dd57 (patch)
tree3b47c908c5911720422acdb5266d87d82a732657 /redfish-core/lib/ethernet.hpp
parent8d19273c9dd6ccfedc5cc46567ab47b0508349f7 (diff)
downloadbmcweb-f1a3caee32574f0d17fbaa8995d387e537c4dd57.tar.xz
Network : Fix the Service Validator Failure
On a DHCP Enabled System, the StaticNameServer property is not aligned to the redfish schema rules and the validator reports the below error: StaticNameServers: Value of Collection property is null but Collections cannot be null, only their entries. Testedby: Redfish Validator *** /redfish/v1/JsonSchemas/EthernetInterface Type (#JsonSchemaFile.v1_0_2.JsonSchemaFile), GET SUCCESS (time: 1.134773) PASS Note: - Previously missed this failure, as i verified the validator on Statically configured setup Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I6119e8d5783571ac75084301b49df1f44a558c8b
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r--redfish-core/lib/ethernet.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index 17b953b8ee..09074fda57 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -1546,7 +1546,7 @@ class EthernetInterface : public Node
}
else
{
- json_response["StaticNameServers"] = {};
+ json_response["StaticNameServers"] = nlohmann::json::array();
}
nlohmann::json &ipv4_array = json_response["IPv4Addresses"];