bmcweb
bmcweb copied to clipboard
Unable configure IP on VLAN interface via redfish
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"
}
]
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.
@prkatti1 Still a problem?
@prkatti1 @rahulmah @gkeishin Still a problem?
Yes, it is still a problem.
The series starting with 22872ff355e9f3fdf5530be5979e2f0f98a7edc0 should've resolved this. Feel free to reopen if not.