While deploying a 3650/3850, want to apply a standard port config to the range of ports that the switch is capable of. This works fine with single switches using the following line in config:
interface range GigabitEthernet1/0/$Number-of-Interfaces-ex_1-48
The correct input for this variable is form view would be 1-24 or 1-48, but when attempting to place a comma in the variable form view, in order to apply the standard config across switches in the stack, the job fails. Found that when ever a comma is placed in form view, the corresponding config generated has the string in place of the input:
interface range GigabitEthernet1/0/[Ljava.lang.String;@4b72070e
This is supposed to say int range gi 1/0/1 - 48, gi 2/0/1 - 48
There is a patch release coming out in January that will have some enhancements for templates.
You can use a variable called comma.
#set($comma = ',')
interface range gigabit1/1/1-4 $comma gig2/2/2-3
actually supposed to make a variable for the comma character.