4-21
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
The
ability

to

create

a

complex

template

requires

a

thorough

knowledge

of

XML

programming

and

the
ACE
CLI


and

i

s

beyond

t

he

scope

of

t

his

guide.

For

information

about

cr

eating

complex

templates

for
configuring
your

ACEs,

go

to

the

Cisco

Developer

Network

(CDN)

site

at

the

following

URL:
http://developer.cisco.com/web/anm/application-templates
This
section

includes

the

following

topics:


Creating
an

Application

Template
Definition
Using

the

ANM

Template

Editor,
page
4-21


Creating
an

Application

Template
Definition
Using

an

External
XML
Editor,

page
4-23
Creating
an

Application

Template

Definition

Using

the

ANM

Template

Editor
You
can

use

the

ANM

Template

editor

to

create

a

new

Application

Template

Definition.
Guidelines
and

Restrictions
This
topic

includes

the

following

guidelines

and

restrictions:


The
configuration

options

provided

during

the

template

creation

process

are

provided

as

a

starting
point
for

defining

the

ACE

configuration

and

are

not

intended

to

produce

a

fully

written

and
functional
configuration.

You

must

complete

the

configuration

with

the

specifics

of

your

ACE
application
using

the

template

editor.

If

your

template

is

to

be

based

on

an

existing

ACE
configuration,
you

c

an

use

the

show

running

config

command

output

as

a


model

and

a

source

for
the
needed

configuration

specifics

(see

the

“Creating

an

Application

Template

Definition

Using

an
External
XML

Editor”

section

on

pa

ge

4-23 ).


By
default,

templates

that

you
create
using

the

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,

change

the

following

code

in

the

template
root
element

from

true

to

false:
showsInGuidedSetup=”false


When
defining

th

e

variable

fields

i

n

the

XML

code,

you

can

en

able

th

e

Basic/Advanced

display
feature
that

allows

a

user

to

hide

certain

variable

fields

when

creating

a

template

instance

using

the
application
template

definition.

Use

this

feature

when

you

want

to

give

the

user

creating

a

template
instance
the

ability

t

o

hide

optional

variable

fields

or


mandatory

variable

fields

that

have

default
values.
The

Basic

view

hides

these

fields

while

the

Advanced

view

displays

all

available

fields.
You
can

hi

de

a

specific

variable

field

or

variable

ar

ray

using

t

he

advanced

attribute

as

fo

llows:


To

hide

a

specific

variable

field

in

Basic

view,

add

the

advanced

attribute

to

the

variable

element
as
follows:
<variable
name="probe_url"

type="string"

displayString="Probe

URL:"

default="/"
perm="ace_vip"
advanced="true"

/>


To

hide

a

variable

array

in

Basic

view,

add

the

advanced

attribute

to

the

variable

array

as
follows:
<array
name="reals"

displayString="IP

Addresses

of

Real

Servers"

perm="ace_vip"
advanced="true">
<variable
name="ipAddr"

displayString="Real

Server

IP

Addresses:"
type="ipaddress"
perm="ace_vip"

default="2.2.2.2"/>
<variable
name="port"

displayString="Real

Server

Ports:"

type="port"
perm="ace_vip"
default="80"/>