Hi !
I went through your question and As per my understanding:
I understand that template can get the interface details from inventory directly and you have created a template to find out the trunk ports and show those interfaces,so heavy scripting is being done here.
So with this current template you are getting for all interfaces at once and not for one filled in the variable field. And you want this to be done for each interface separately?
Is this correct? if not could you please elaborate us more.
Thank you
Regards
Niranjana.