bmcweb icon indicating copy to clipboard operation
bmcweb copied to clipboard

Able to configure any value to the staticnameserver

Open prkatti1 opened this issue 5 years ago • 2 comments

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"
],```

prkatti1 avatar Jul 02 '19 11:07 prkatti1

@edtanous @ratagupt Pls look into it.

prkatti1 avatar Jul 02 '19 11:07 prkatti1

@prkatti1 Still a problem?

gtmills avatar Feb 21 '20 19:02 gtmills

No response on this bug for 3 years. Closing. Feel free to reopen if this is still an issue.

edtanous avatar Mar 27 '23 17:03 edtanous