10-06-2014 08:01 AM
Hi,
So I manged to create an port grouping (all ports which start with the description ACP)
And I also managed to create a CLI-template with the a DB variable setup (see http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-0/user/guide/prime_infra_ug/create_temps.html#60783)
My template:
#foreach ($interfaceName in $InterfaceNameList)
interface $interfaceName
switchport trunk encapsulation dot1q
switchport trunk native vlan 3
switchport trunk allowed vlan 3-8
switchport mode trunk
#end
But when I deploy this template it will apply to all the ports on that switch, I can't apply only to the ports in the port group
Is it possible to fix this somehow?
I can think of 3 ways:
Use other menu than Deploy -> Configuration Tasks -> <select template> -> deploy..., Which is the correct one?
Make an new DB variable which only select ports which start with the description "ACP", but I am on the dark how to create such a DB variable, I know I need to edit /opt/CSCOlumos/conf/ifm/template/inventoryTagsInTemplate/CLITemplateDbVariablesQuery.properties but I can't find the syntax/field description
Use an "if construction" in the cli template, something like #if(${description} == "ACP" ...., but how precisely?
Who can give me any tips?
Thanks,
Emiel Witteman