4-18
User
Guide

for

the

Cisco

Application

Networking

Manager

5.2
OL-26572-01
Chapter
4






Using

Application

Template

Definitions
Managing
Application

Template

Definitions
Guidelines
and

Restrictions
This
topic

includes

the

following

guidelines

and

restrictions:


You
can

edit

the
template
definition

within

ANM

using
the
ANM
template

editor
or
you

can

export
the
template

file,

edit

the

code

using

a

text

editor

such

as

WordPad,

and

then

import

the

modified
template
file.


When
editing

a

system

template

file,

in

the

XML

code

you

must

change

the

template

type

or

version
number
(or


both).


By
default,

templates

that

you
created
using
the
ANM

template

editor

display

as

options
when

using
Application
Setup

in

Guided

Setup

(see

the

“Using

Application

Setup”

section

on

pa

ge

3-14 ).

To
configure
a

template

not

to

display

in

Application

Setup,

either

change

the

following

code

in

the
template
root

element

from

true

to

false

or

remove

this

piece

of

code

from

the

root

element:
showsInGuidedSetup=”false
This
section

includes

the

following

topics:


Editing
an

Application
Template
Definition

Using

the

ANM

Template

Editor,
page
4-18


Editing
an

Application
Template
Definition

Using

an

External
Editor,
page
4-19
Editing
an

Application

Template

Definition

Using

the

ANM

Template

Editor
You
can

use

the

template

editor

that

comes

with

ANM

to

modify

an

application

template

definition

from
within
ANM.
Procedure
Step
1
Choose
Config
>

Global

>

Application

Template

Definitions.
The
Application

Template

Definitions

window

appears,

displaying

the

information

described

in
Ta
b

l

e


4-3 .
Step
2
From
the
Application
Template
Definitions

window,

choose

the

template

to

edit
and
click

the
Edit
icon
(
)
.
The
template

editor

window

appears,

displaying

the

template

code.
Step
3
Edit
the
code

as

needed.
For
information

about

using

the

ANM

template

editor

to

make

your

edits,

see

the

“Using

t

he

ANM
Template
Editor”

section

on

pa

ge

4-29 .
Step
4
When
your

edits

ar

e
complete,
do

one


of

t

he
following:


Click
Va
l

i

d

a

t

e


to
have
ANM
validate

the

application

template

definition

file,

which
means

that
ANM
checks

to

see

that

it

is

a

well-formed

XML

document

that

follows

the

rules

defined

by

the
ANM
Template

XML

schema.

ANM

highlights

any

errors

in

the

code.


Click
Save
to

save

your

changes

using

the

same
filename.

This

button

is

not

available

when

you

edit
a
system

template

(you

must

use

the

Save

As

option).


Click
Save
As

to

open

the

Save
As
New

Template

Definition

popup

window

and

save
your

changes
under
a

new

application

type

or

version.

The

popup

window

t

ext

fields

are

populated

with

t

he
attributes
of

the

original

file

opened

with

the

exception

of

the

Version

field,

which

ANM

increments
by
one.

If

the

version

is

not

a

number,

the

“-next”

suffix

is

added

to

the

version.

From

the

popup
window,
modify

the

file

attributes

if

needed

and

click

Save.