Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
extends
A template can derive some of its properties by extending one or more base
templates as shown in the following example:
volume_template DerivedTemplate {
extends BaseTemplate
rules {
...
}
};
By extending template BaseTemplate, the template DerivedTemplate provides
the following features:
■ Provides all capabilities that BaseTemplate provides.
See “provides” on page 151.
■ Requires all capabilities that BaseTemplate requires.
See “requires” on page 152.
■ Inherits all capabilities that BaseTemplate inherits.
See “inherits” on page 151.
■ Obtains and applies all the rules of BaseTemplate.
■ Can use variables of all the capabilities that BaseTemplate provides.
BaseTemplate and DerivedTemplate cannot use different capabilities that have
variables with the same name.
The derived template has an “is a” relationship with its base templates. The derived
template can be used instead of any of its base templates.
The following example extends ReliablePerformant into the template
MyReliablePerformant, and demonstrates the application of the extends keyword:
volume_template MyReliablePerformant {
extends ReliablePerformant
rules {
...
}
};
Using capabilities, templates and rules
Volume templates
150