Post by AMI_Mani on Jun 4, 2019 18:17:20 GMT
Hi,
As per Protocol definition("$ref": "#/definitions/Protocol") we can Patch Port, Protocol enabled properties since readonly is mentioned as false.
"Port": {
"description": "Indicates the protocol port.",
"longDescription": "The value of this property shall contain the port assigned for the protocol.",
"minimum": 0,
"readonly": false,
"type": [
"integer",
"null"
]
},
"ProtocolEnabled": {
"description": "Indicates if the protocol is enabled or disabled.",
"longDescription": "The value of this property shall contain the enabled status of the protocol. The value shall be true if enabled and false if disabled.",
"readonly": false,
"type": [
"boolean",
"null"
]
}
If we take IPMI protocol in this schema, it's mentioning as default value as 623. It is not possible to change Port, protocolEnabled in case of IPMI.
"IPMI": {
"$ref": "#/definitions/Protocol",
"description": "Settings for this Manager's IPMI-over-LAN protocol support.",
"longDescription": "This object shall contain information for the IPMI over LAN protocol settings for the manager. The default value of the Port property should be 623 for compatibility with established client implementations."
}
Do we need to allow user to change the values as per schema using Patch request or change required in schema to mention as Readonly
as true.
If implementation only supports Get suport only for attributes like this, will it be violation of schema(Not conformance to Redfish standard)
Please explain in detail about Readonly attribute as false in generic usage(Referring schema for implementation)
Thanks,
Mani
As per Protocol definition("$ref": "#/definitions/Protocol") we can Patch Port, Protocol enabled properties since readonly is mentioned as false.
"Port": {
"description": "Indicates the protocol port.",
"longDescription": "The value of this property shall contain the port assigned for the protocol.",
"minimum": 0,
"readonly": false,
"type": [
"integer",
"null"
]
},
"ProtocolEnabled": {
"description": "Indicates if the protocol is enabled or disabled.",
"longDescription": "The value of this property shall contain the enabled status of the protocol. The value shall be true if enabled and false if disabled.",
"readonly": false,
"type": [
"boolean",
"null"
]
}
If we take IPMI protocol in this schema, it's mentioning as default value as 623. It is not possible to change Port, protocolEnabled in case of IPMI.
"IPMI": {
"$ref": "#/definitions/Protocol",
"description": "Settings for this Manager's IPMI-over-LAN protocol support.",
"longDescription": "This object shall contain information for the IPMI over LAN protocol settings for the manager. The default value of the Port property should be 623 for compatibility with established client implementations."
}
Do we need to allow user to change the values as per schema using Patch request or change required in schema to mention as Readonly
as true.
If implementation only supports Get suport only for attributes like this, will it be violation of schema(Not conformance to Redfish standard)
Please explain in detail about Readonly attribute as false in generic usage(Referring schema for implementation)
Thanks,
Mani