The apply rule is used to apply rules from one or more specified templates in addition to the rules that appear in the current template. This rule acts recursively if the specified templates also use apply in their rules sections. The capabilities of any referenced templates are not used.
Expressions involving apply can specify the eachof or oneof operator. The default operator for this keyword is eachof.
The following examples demonstrate the application of the apply rule:
ArrayProductId to a compound rule within the template PrefabricatedDataMirroring:
volume_template PrefabricatedDataMirroring {
provides PrefabricatedDataMirroring
confineto eachof ( "Redundancy" =nmirs , "Parity" ="0" )
In the following example, the template MyReliableSnapshot is defined so that the application of Snapshot to one mirror results in the whole volume getting the associated Snapshot capability, whereas the application of EMCStorage to one mirror does not result in the whole volume getting the EMCStorage capability: