[% MACRO interface_metainfo( if_info ) BEGIN %] set interfaces ge-1/1/1 unit 23 description "[% if_info.description %]" set interfaces ge-1/1/1 unit 23 encapsulation [% if_info.encapsulation %] set interfaces ge-1/1/1 unit 23 vlan-tags [% FOR tag IN if_info.vlan_tags.keys %][% tag %] [% if_info.vlan_tags.$tag %][% END %] ## YADDA YADDA YADDA [% END %] [%- CLEAR -%] [% FOR if IN interface_list %] [% interface_metainfo( if ) %] [% protocol_block( if ) %] [% class_of_service_block( if ) %] [% END %]