commit | 83968c391e1230c35cb1ff48f4be497966b10f05 | [log] [tgz] |
---|---|---|
author | Manojkiran Eda <manojkiran.eda@gmail.com> | Thu Aug 22 11:59:13 2019 +0530 |
committer | Manojkiran Eda <manojkiran.eda@gmail.com> | Thu Aug 22 12:08:16 2019 +0530 |
tree | 1887e70117e79e0a909b65e943241100172bf2e2 | |
parent | 708723eb798b8c95868f3a476baf7323c21b02a5 [diff] |
Adding Invalid Argument Error for Nameservers property The validation for Nameservers property was added a part of below commit. https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-networkd/+/24601/ The idea behind this commit is to support the Validation failure, where we catch the InvalidArgument error, so that Network service wont be crashed. TestedBy: PATCH operation on Nameservers property using some random junk values and made sure that , the backend throws an error without the Network service being crashed. Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com> Change-Id: I4233a1ea69714825da51bc9def13d79047f1f02d
diff --git a/xyz/openbmc_project/Network/EthernetInterface.interface.yaml b/xyz/openbmc_project/Network/EthernetInterface.interface.yaml index 6fa1d0b..8363505 100644 --- a/xyz/openbmc_project/Network/EthernetInterface.interface.yaml +++ b/xyz/openbmc_project/Network/EthernetInterface.interface.yaml
@@ -30,6 +30,8 @@ type: array[string] description: > DNS servers on the interface. + errors: + - xyz.openbmc_project.Common.Error.InvalidArgument - name: NTPServers type: array[string] description: >