Cisco Cisco Configuration Engine 1.4 Prospecto
© 2006 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
Presentation_ID
32
Velocity Templates - Example
New parameter Format
$!{dsobj.getValue(
'IOSsubnetmask
')} – Template attribute
Variable
#set(
$vpi
= 101 ) - Digits
#set(
$encap
= "aal5snap" ) - Strings
#set(
$subnetmask
= "$!{dsobj.getValue('IOSipaddress')}") – Substitute template
attribute
Nested Condition
#if (
$ip_address_needed
== "YES" )
ip address 10.10.1.1 255.255.255.0
#if (
#if (
$no_atm_keepalive
== "YES")
no atm ilmi-keepalive
#end
#else
no ip address
#end