
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
BRKNMS-2784_c1
26
#set( $ip_digits = [1..10] )
#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
#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")
no atm ilmi-keepalive
#end
#else
no ip address
#end
Nested Conditions
#set( $vpi = 101 ) - Digits
#set( $encap = "aal5snap" ) - Strings
#set( $subnetmask = "$!
{dsobj.getValue('IOSipaddress')}")
– Substitute template attribute
Variables
Compound Conditions
Velocity Templates: Variables and
Logical Conditions
© 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential C97-504880-00
26
Comentarios a estos manuales