|
The Cisco Broadband Access Center software enables you to customize its user interface to meet the unique requirements of your network. Among the components installed with the BAC server is the Cisco IP Solutions Center (ISC) Template Manager.
Table 10-1 lists the topics discussed in this chapter and their associated sections.
A BAC template contains the Cisco IOS software commands, attributes, and variables that define a service feature. A template defines variables and merges variables with data to generate commands that you download to a router. You can use BAC's default configuration templates, or you can define your own templates, using ISC Template Manager.
With the ISC Template Manager to select and modify existing BAC templates and data files, as well as to create new ones. BAC implements the Template and Data File Chooser component of Template Manager. To work with Template Manager, you should be familiar with the Velocity Template Language (VTL), a scripting tool that enables you to embed dynamic content in the BAC web client. Information about VTL and its syntax is readily available through the World Wide Web. You should also be familiar with extended markup language (XML).
The ISC Template Manager interface is similar to the BAC interface. In the Object Selector area, it presents a tree view of template folders and templates. The right mouse button is active in this area of the main window, enabling you to:
You highlight a folder to add a template to it. When you highlight a template, the system displays a link to the template in the content area of the main window. Click this link to view an existing template.
Note To take full advantage of the customization provided by Template Manager, you need also to work with
the Cisco Convergent Network Solution Center-Service Provisioning (CCNSC-SP) application's Profile
Manager. The CCNSC-SP graphical user interface is installed with BAC. For more information on
Profile Manager, see the CCNSC-SP User Guide for Release 2.0 at the following URL: http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/ccnsc_sp/2_0/ |
When you create a template, you work with two editors:
When you create a template, you work with the Template Editor to specify the information described in Table 10-2.
As you work with a template, you can set default values for its variables. The information you set for variables depends on its data type. The information for most variables is described in Table 10-3.
The sections that follow describe the procedure for creating a template and then show a sample main section and a sample user section.
To create a template, follow these steps:
Step 2 Click the Tools tab. The system displays the Tools page in the content area of the main window.
Step 3 In the Subtask bar, click Template Manager. The system displays the Template Manager page in the main window.
Step 4 In the Object Selector, click Broadband.
Step 5 In the main window, click Create Template. The system displays the Template Editor page.
Step 6 Enter information about the main template section, as defined in Table 10-2.
Step 7 To validate the script that you entered, from the Select & Click Go drop-down list, click Validate and Go. Template Manager checks the script syntax and displays a dialog box that describes syntax errors or informs you the script is valid.
Step 8 Click OK. The system redisplays the Template Editor page.
Step 9 To set default values for the variables that Template Manager generates from your script, from the Select & Click Go drop-down list, click Variables. The system displays the Templates Variables dialog box. To set the value or values for a variable:
b. Click Edit. The system displays the Variable Editor dialog box. Set values for the variables as defined in Table 10-3.
c. Click OK. The system redisplays Templates Variables dialog box.
Step 10 From the Select & Click Go, drop-down list, click User Section. The system displays the Section Editor dialog box superimposed over the Template Editor.
Step 11 Enter information in the Section Editor to control the way BAC displays the contents of the template. In the Section Editor, you:
For more information, see the "Sample User Section" section.
Step 12 Click OK. The system redisplays the Template Editor.
Step 13 Click Save.
The following code segment illustrates the main template section:
The following XML code illustrates the user section of a template:
You can use Template Manager to the create default Cisco IOS configlets for subsequent downloading to network devices. You do this by associating one or more data files with a selected template.
When you work with a data file, you affect values that the BAC interface displays. The Data File Editor page has two sections, which are defined in Table 10-4.
Table 10-4 Data File Editor Sections
Section | Definition |
---|---|
Information about the data file, including the data file name and a description. |
|
Step 2 In the Subtask bar, click Template Manager. The system displays the Template Manager page in the main window.
Step 3 In the Object Selector, expand the Broadband hierarchy and select the template with which you want to work.
Step 4 In the main window, click Create Data File. The system displays the Data File Editor page in the main window.
Step 5 In the General section of the Data File Editor, enter a data file name, and, optionally, a description.
Step 6 In the Variables section, set default values for the fields in the specified template.
Step 7 To view your work, click Configlet. The system displays the segment of the Cisco IOS configlet that you have just created.
Step 8 To save your work, click Save.
Step 9 Click Close.
Posted: Wed May 21 08:03:59 PDT 2003
All contents are Copyright © 1992--2003 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.