Cisco Cisco Configuration Engine 1.6 Prospecto
© 2010 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
C97-601753-00
27
#set( $ip_digits = [1..10] )
#foreach( $ip_d in $ip_digits )
#foreach( $ip_d in $ip_digits )
ip route 30.0.0.$ip_d 255.255.255.255 10.0.0.2
#end
Loops and Range Operators
#if ( $ip_address_needed == "YES" &&
$no_atm_keepalive == "YES")
ip address 10.10.1.1 255.255.255.0
no atm ilmi-keepalive
no atm ilmi-keepalive
#else
no ip address
#end
#if ( $ip_address_needed == "YES" )
ip address 10.10.1.1 255.255.255.0
#if ( $no_atm_keepalive == "YES")
#if ( $no_atm_keepalive == "YES")
no atm ilmi-keepalive
#end
#else
no ip address
#end
Nested Conditions
#set( $vpi = 101 ) - Digits
#set( $encap = "aal5snap" ) - Strings
#set( $subnetmask =
#set( $encap = "aal5snap" ) - Strings
#set( $subnetmask =
"$!{dsobj.getValue('IOSipaddress')}")
– Substitute template attribute
– Substitute template attribute
Variables
Compound Conditions
Configuration Engine Velocity
Templates: Examples
Templates: Examples
© 2010 Cisco Systems, Inc. All rights reserved.
Cisco Confidential
C97-601753-00
27