Skip to content

Unable to add a new IP address with a different gateway than the existing gateway #78

@swe12345

Description

@swe12345

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions