2 Replies Latest reply on Mar 9, 2010 4:21 PM by christineb

    Question about Config Change Templates


      I'm trying to create a template to set the interface VLAN for a number of switch ports.

      I've got two strings one being @Interface_VLAN the other @Number_of_Interfaces but don't know how to adapt the logic from the example given in the base template to iterate through the number of interfaces the user inputs.




        foreach (@interfaceItem in @ContextNode.Interfaces)


                //Send these CLI commands



                    interface @interfaceItem

                    switchport access @Interface_VLAN


                    no logging event link-status

                    cdp enable

                    switchport voice vlan 2

                    service-policy input qos

                    srr-queue bandwidth share 10 10 60 20

                    srr-queue bandwidth shape  10  0  0  0 

                    queue-set 2

                    priority-queue out

                    Spanning-tree portfast

                    Spanning-tree bpduguard enable


                    //Add other CLI commands here