bmcweb icon indicating copy to clipboard operation
bmcweb copied to clipboard

Unable to modify specific entry from staticnameservers on BMC

Open prkatti1 opened this issue 5 years ago • 3 comments

Unable to keep old value when we try to modify any of the staticnameserver entry from BMC. It is modifying all entries.

curl -k -H "X-Auth-Token: $bmc_token" -X PATCH -D patch.txt -d '{"StaticNameServers": ["{}","3.3.3.7"]}' https://${bmc}/redfish/v1/Managers/bmc/EthernetInterfaces/eth0

curl -k -H "X-Auth-Token: $bmc_token" -X GET https://$bmc/redfish/v1/Managers/bmc/EthernetInterfaces/eth0

"{}",
"3.3.3.7"

], "SpeedMbps": 0, "StaticNameServers": [ "null", "3.3.3.7" ],

prkatti1 avatar Jul 02 '19 11:07 prkatti1

@edtanous @ratagupt Pls take a look.

prkatti1 avatar Jul 02 '19 12:07 prkatti1

@prkatti1 : As discussed before, we would not be having the above method to delete the values from the list. If the list is of simple object(like string), we would ask the user to send the complete list.

@edtanous : Can you also suggest?

ratagupt avatar Jul 03 '19 07:07 ratagupt

If I want to delete 1 entry from list of 10, why I need to pass remaining 9 entries? And to modify 1 entry why I need to remember and pass 10 entries? Is there any limit for max number of dns servers that can be configured? @edtanous

prkatti1 avatar Jul 03 '19 09:07 prkatti1

Is this still an issue? I believe it was discussed in other forums, but I don't recall the conclusion.

edtanous avatar Mar 27 '23 17:03 edtanous

No response from submitter about if this is still an issue. Bug is nearly 4 years old at this point and code has changed significantly, I suspect this was fixed long ago.

edtanous avatar Jun 26 '23 15:06 edtanous