Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

142 Using capabilities, templates and rules
Volume templates
Can use variables of all the capabilities that BaseTemplate provides.
Note: 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 demonstrates the application of the extends keyword:
Extend ReliablePerformant into the template MyReliablePerformant:
volume_template MyReliablePerformant {
extends ReliablePerformant
rules {
...
}
};
inherits
If a template specifies that it can inherit a capability, it provides that capability
when required. Inheriting a capability is equivalent to the combination of
requiring and providing a capability.
See “requires” on page 143.
See “provides” on page 143.
The following example demonstrates the application of the inherits keyword:
The following template definition:
volume_template ReliableSnapshot {
requires Reliable
provides Reliable, Snapshot
rules {
...
}
};
can be rewritten as:
volume_template ReliableSnapshot {
inherits Reliable
provides Snapshot
rules {
...
}
};