Implement scalar-unit type as defined in TOSCA spec.
Registered by
Victor HU
The scalar-unit type can be used to define scalar values along with a unit from the list of recognized units as [B,KB,MB,GB,TB]. 1MB=1000KB = 1000000B
scalar-unit is defined as <scalar> <unit>
usage example:
Storage size in Gigabytes
properties:
storage_size: 10 GB
special requirements:
1. any number of spaces (including zero or none) is allowed between the scalar value and the unit value.
2. support constraints like greater_or_equal and in_range. (eg: storage_size: in_range [4 GB, 20 GB ] )
Blueprint information
- Status:
- Complete
- Approver:
- Sahdev Zala
- Priority:
- Undefined
- Drafter:
- Victor HU
- Direction:
- Needs approval
- Assignee:
- Haiyang DING
- Definition:
- New
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- None
- Started by
- Sahdev Zala
- Completed by
- Sahdev Zala
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add scalar unit type
Addressed by: https:/
Add scalar unit type
(?)