Problem:
Unable to add a new IP address with a different gateway than the existing gateway
Steps to recreate:
Add a new IP on eth1 with a different gateway than the existing IP using the curl command
curl -k -H "X-Auth-Token: $bmc_token" -H "Content-Type: application/json" -X PATCH -d '{"IPv4StaticAddresses":[{},{"Address": "xx.xx.xx.xx","SubnetMask": "xxx.xxx.xxx.xxx","Gateway":"yy.yy.yy.yy"}]}' https://$bmc/redfish/v1/Managers/bmc/EthernetInterfaces/eth1
Seeing that it is throwing 400 error and giving the error 'IPv4StaticAddresses/1/Gateway' couldn't be written as it is conflicting the value 'IPv4StaticAddresses/0/Gateway'
Expected Results:
Expecting that we must be able to modify the gateway.