bmcweb
bmcweb copied to clipboard
Able to configure any value to the staticnameserver
Able to configure any value to the staticnameserver. It supposed to accept IP address, but accepting string, special chars and numeric values.
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
bash-4.1$ 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": [
"@@@@",
"3.3.3.7"
],```
@edtanous @ratagupt Pls look into it.
@prkatti1 Still a problem?
No response on this bug for 3 years. Closing. Feel free to reopen if this is still an issue.