I would like to create a baseline template that checks for the presence of tacacs-server 10.1.82.24 and tacacs-server 10.2.82.25 and removes any other tacacs-server ip address that might be configured. Can someone help me create a template that would do this?
The following advanced rules evaluated in global mode should do it for you. This assumes you're using LMS 2.6 or higher.
+ tacacs-server 10.1.82.24
+ tacacs-server 10.2.82.25
- tacacs-server [#!(10\.1\.82\.24|10\.2\.82\.25)#]