bmcweb icon indicating copy to clipboard operation
bmcweb copied to clipboard

Unable configure IP on VLAN interface via redfish

Open prkatti1 opened this issue 5 years ago • 4 comments

Unable to add IP address to VLAN. Created vlan 30: }bash-4.1$ curl -k -H "X-Auth-Token: $bmc_token" -D get.txt -X GET https://${bmc}/redfish/v1/Managers/bmc/EthernetInterfaces/eth0/VLANs/

  "@odata.context": "/redfish/v1/$metadata#VLanNetworkInterfaceCollection.VLanNetworkInterfaceCollection",
  "@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces/eth0/VLANs",
  "@odata.type": "#VLanNetworkInterfaceCollection.VLanNetworkInterfaceCollection",
  "Members": [
    {
      "@odata.id": "/redfish/v1/Managers/bmc/EthernetInterfaces/eth0/VLANs/eth0_30"
    }
  ],
  "[email protected]": 1,
  "Name": "VLAN Network Interface Collection"

Now configure IP: curl -k -H "X-Auth-Token: $bmc_token" X PATCH -D patch.txt -d '{"IPv4Addresses": [{},{"Address": "x.x.x.x","AddressOrigin": "Static","SubnetMask": "xx.xx.0.0","Gateway":"x.x.x.1"}]}' https://${bmc}/redfish/v1/Managers/bmc/EthernetInterfaces/eth0/VLANs/eth0_30

  "[email protected]": [
    {
      "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
      "Message": "The property IPv4Addresses is not in the list of valid properties for the resource.",
      "MessageArgs": [
        "IPv4Addresses"
      ],
      "MessageId": "Base.1.4.0.PropertyUnknown",
      "Resolution": "Remove the unknown property from the request body and resubmit the request if the operation failed.",
      "Severity": "Warning"
    }
  ],
  "[email protected]": [
    {
      "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
      "Message": "The property VLANEnable is a required property and must be included in the request.",
      "MessageArgs": [
        "VLANEnable"
      ],
      "MessageId": "Base.1.4.0.PropertyMissing",
      "Resolution": "Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.",
      "Severity": "Warning"
    }
  ],
  "[email protected]": [
    {
      "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
      "Message": "The property VLANId is a required property and must be included in the request.",
      "MessageArgs": [
        "VLANId"
      ],
      "MessageId": "Base.1.4.0.PropertyMissing",
      "Resolution": "Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.",
      "Severity": "Warning"
    }
  ]

prkatti1 avatar Apr 25 '19 05:04 prkatti1

When you configured the IP, what was the data in the resource "/redfish/v1/Managers/bmc/EthernetInterfaces/eth0/VLANs/eth0_30" ? Please get the output of the GET request on this resource for reference.

sunharis avatar May 22 '19 14:05 sunharis

@prkatti1 Still a problem?

gtmills avatar Feb 21 '20 19:02 gtmills

@prkatti1 @rahulmah @gkeishin Still a problem?

gtmills avatar May 19 '21 00:05 gtmills

Yes, it is still a problem.

prkatti1 avatar May 19 '21 13:05 prkatti1

The series starting with 22872ff355e9f3fdf5530be5979e2f0f98a7edc0 should've resolved this. Feel free to reopen if not.

edtanous avatar Mar 27 '23 17:03 edtanous