cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2116
Views
0
Helpful
2
Replies

Prime Infrastructure CLI Templates

m3r@op.pl
Frequent Visitor
Frequent Visitor

Anyone know how to use # in CLI content ?

For example I want to delete from ACL remark like:

 

no remark ###premium.content.it

 

but everything after # is ignored 😞

2 Replies 2

pieterh
VIP
VIP

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.

Yeap, since # has special purpose, the easiest way is to delete whole ACL and paste back without remark and any other unused lines.
Henceforth - don't use # in naming anything in configuration.