Managing configuration change using templates
The following example procedures, which are specific to an environment consisting of Cisco IOS routers contain steps that can be performed to manage configuration change using templates in a quick start stand-alone TrueSight Network Automation configuration:
Creating a change template
The following example procedure demonstrates how to create a change template. You can also create a template by using an existing configuration for a device as a template, as described in Adding-a-template.
- Open the Templates page by navigating to Network > Scripts > Templates in the UI.
- Open the Add Template page by clicking Add in the menu.
- In the Name field, enter Standard Cisco IOS Banner.
- Click the Contents tab.
- Click Add to add template contents.
- In the Device Type field, enter Cisco and Cisco IOS Switch/Router.
- In the Contents field enter the following:
banner motd “No Trespassing. All use of this network device must be authorized by the owning organization. This device is being monitored.”
End Click Enter.
- Click Save.
Deploying a change using a template
Te following example procedure demonstrates how to deploy a configuration change using a template.
- Open the Add Job page.
- Open the Deploy to Action pop-up.
- In the Annotation field, enter Banner Change.
- In the Network Span field, select Device.
- Click
and select your device from the listing in the pop-up.
- In the Configuration field, select Template.
- Click
and select Standard Cisco IOS Banner from the pop-up.
- Click OK.
- In the Actions tab in the Add Job page, note that by clicking on
Report, you can view a Configuration Comparison Report comparing the current configuration with the template.
- In the Details tab in the Add Job page, enter the following:
- In the Run At field, select the Now or When Approved option.
- Click Save and Submit.
Verifying the change took place
The following example procedure demonstrates how to verify that the change took place.
After the Deploy to Active action is completed, the status of the action in the Jobs page (Network > Actions > Jobs) should be Completed.
Open the Job Details report by clicking
Details in the Actions column for the recently executed job.
Open the Job Summary Report by clicking on the Job Summary link and note that the workflow parameters and schedule are displayed along with the actual changes made to the devices involved.
Accepting the configuration change
The following example procedure demonstrates how to accept the configuration change.
- Open the Dashboard by clicking the Home tab.
- Click the Cisco Router device name.
A pop-up containing information about the device and links to various actions and reports is displayed. - In the pop-up, click Commit in the Actions section.
- In the Commit window, make the following changes:
- In the Annotation field, enter Standard banner change accepted.
- Select the Mark As Trusted option.
Click OK.
- In the Run At field of the Add Job window, select the Now or When Approved option.
- Click Save and Submit.