06-04-2025 03:58 AM
Hi I need a help I want to change some descriptions on my routers via Features & Technologies CLI template
I try to use symbol #
Like
int Vl100 des -E- ### Internet main channel
but CPI ignore it and try to install (Without ### Internet main channel)
int Vl100 des -E-
maybe I need to screen it
06-04-2025 10:25 AM - edited 06-04-2025 10:36 AM
In short: don't use "#" in a template!
I answered a similar question before
Prime Infrastructure CLI Templates - Cisco Community
with the reply below, unfortunately the link in that post does not work anymore,
but the statement about "#" as precessing a known keyword will still be valid !
the # has special meaning in CLI template. look at this example from the book
#foreach ($interfaceName in $interfaceNameList)
interface $interfaceName
shutdown
#end
so using it multiple times (used as a comment) you can expect some problems
CPI tries to match a "known keyword" following the #sign and on nomatch ignore the # and what follows.
and also:
Enter the CLI information. In the CLI tab, you must enter code using Apache VTL.
See Apache Velocity Language Template Guide.
06-04-2025 09:22 PM
Oh, inconvenient that we can't use any special symbols
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide