Allow overwriting the values when using *-set CLI on options supporting Append action
As discussed in [1], currently *-set CLIs allow user to add extra values to those options which support "Append" action.
However, this breaks a use case where the user was able to overwrite the options, instead of adding further information.
This blueprint has been created to allow a new option "--no-XYZ" which allows user to clear the information.
- If both --XYZ and --no-XYZ is specified, then the information of XYZ is overwritten
- If --no-XYZ is specified, then the information of XYZ is cleared
- If --XYZ is specified, then the information of XYZ is appended with the information passed to the CLI
Affected options as of 15/4/16
# --allocation-pool and --host-route options : subnet set
# --binding-profile and --fixed-ip options : port set
[1]https:/
Blueprint information
- Status:
- Started
- Approver:
- Richard Theis
- Priority:
- Low
- Drafter:
- Reedip
- Direction:
- Approved
- Assignee:
- None
- Definition:
- Approved
- Series goal:
- None
- Implementation:
-
Blocked
- Milestone target:
- None
- Started by
- Reedip
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
October 27, 2016 (rtheis): What is the current status for this blueprint?
Gerrit topic: https:/
Addressed by: https:/
Add describe of overwrite options behavior into devref ==> merged
Push a demo for discussion ^^ --RuiChen 28/04/2016
Proposed change scope:
compute.v2: To be taken up by reedip
--property option : aggregate set : https:/
--property option : flavor set : https:/
--property option : flavor unset https:/
--property option : server set https:/
--property option : server unset : https:/
identity.v2 : To be taken up by reedip
--property option : project set : https:/
--property option : project unset : https:/
identity.v3 : To be taken up by reedip
--property option : project set
image.v1 : To be taken up by reedip
--property option : image set
image.v2 : To be taken up by reedip
--property option : image set
object_store.v1: To be taken up by reedip
--property option : object store account set
--property option : object store account unset
--property option : container set
--property option : container unset
--property option : object set
--property option : object unset
volume.v1 : To be taken up by zhiyon.dai
--property option : snapshot set: https:/
--property option : snapshot unset: https:/
--property option : volume set: https:/
--property option : volume unset
--property option : volume type set
--property option : volume type unset
--property option : volume qos set: https:/
--property option : volume qos unset
volume.v2 : To be taken up by zhiyon.dai
--property option : snapshot set: https:/
--property option : snapshot unset : https:/
--property option: volume set: https:/
--image-
--property and --image-property options : volume unset
--property option : volume type set
--property option : volume type unset
--property option : volume qos set: https:/
--property option : volume qos unset
network.v2
--binding-
--route and --clear-routes options : https:/
--dns-
--allocatio
--dhcp-options and --no-dhcp-options: https:/
Add scope --RuiChen 12/05/2016
Addressed by: https:/
Update devref about "--no-property"
Addressed by: https:/
Overwrite/Clear Flavor property
Addressed by: https:/
Support "--no-property" option in volume snapshot set
Addressed by: https:/
Introduce overwrite functionality for account property.
Addressed by: https:/
Introduce overwrite functionality for container property.
Gerrit topic: https:/
Gerrit topic: https:/
Addressed by: https:/
Support --no-property in "volume set" command
Addressed by: https:/
Support "--no-property" option in volume qos set