5-16
Cisco Broadband Access Center 3.8 Administrator Guide
OL-27172-01
Chapter 5 Configuration Templates Management
Authoring Configuration Templates
</ObjectInstance>
</ObjectInstance>
</Configuration>
</tc:Template>
To configure custom properties from the administrator user interface, choose the Configuration >
Custom Property tabs. Use the Add Custom Property page to add or delete custom properties. For
details, see Configuring Custom Properties, page 17-5.
Caution If you remove custom properties that a template references, the RDU fails to generate instructions for a
device.
Using Parameter Substitution
Values from the Cisco BAC property hierarchy are substituted into a template by using the VAR()
construct, to produce a custom configuration from a configuration template. The VAR() construct can
appear in an XML element value or element attribute. You can also use it to substitute full or partial
values.
The following list describes the constructs that Cisco BAC supports for parameter substitution:
• Cisco BAC property value into XML element content
• Cisco BAC property value into XML element attribute
• Default value
• XML partial element content
• Values with special characters
Syntax Description
VAR(token=someChar, name=someProperty, defaultValue=someValue)
• token—Specifies the character that delimits subsequent fields. This element is optional and defaults
to a comma (,).
Note If the default value contains a comma (,), then start the VAR() construct by specifying a token
character. This token must not appear in the default value. Also, ensure that the token
character precedes the VAR end bracket.
• name—Specifies the name of the custom property to be substituted or the Standard Device
properties to be referenced.
• defaultValue—Specifies the value to use if the referenced property is not available.
Example 5-10 Setting a Value to a Cisco BAC Custom Property
<Value>VAR(name=/cpe/version, defaultValue=4)</Value>
Example 5-11 Referencing Standard Device Property
<Value>VAR(name=/IPDevice/connectionRequestPath, defaultValue="http://test")</Value>