
© 2010 Cisco and/or its affiliates. All rights reserved. Cisco Public
BRKNMS-2784_c1
27
Velocity Templates: Example
#set( $wanDescription = $!{dsobj.getValue('IOSwandescription')} )
#set( $wanIPAddress = $!{dsobj.getValue('IOSwanipaddress')} )
#set( $wanNetmask = $!{dsobj.getValue('IOSwannetmask')} )
#set( $intfSpeed = $!{dsobj.getValue('IOSintfspeed')} )
#set( $duplex = $!{dsobj.getValue('IOSduplex')} )
!
interface FastEthernet 0/0
description $wanDescription
ip address $wanIPAddress $wanNetmask
speed $intfSpeed
duplex $duplex
no ip directed-broadcast
no shutdown
load-interval 30
no cdp enable
!
#if($snmpComm1 != "")
snmp-server community $snmpComm1 view SNMPbugfix RO 99
#end
#if($snmpComm2 != "")
snmp-server community $snmpComm2 view SNMPbugfix RO 99
#end
!
#set($fxsPortList=[0..$count])
#set($dpid = 1)
#foreach($port in $fxsPortList)
dial-peer voice $dpid pots
service mgcpapp
port 2/$port
#set($dpid=$dpid+1)
#end
Comentarios a estos manuales