| [% IF row.up_admin == 'down' %]
        s
        [% ELSIF row.stp == 'blocking' %]
        b
        [% ELSIF row.is_free(params.age_num, params.age_unit) %]
        f
        [% ELSIF row.up_admin == 'up' AND row.up == 'down' %]
        d
        [% END %][% IF params.c_port %] | [% row.port | html_entity %][% END %]
      [% IF params.c_descr %] | [% row.descr | html_entity %][% END %]
      [% IF params.c_type %] | [% row.type | html_entity %][% END %]
      [% IF params.c_duplex %] | [% IF row.up == 'up' AND row.duplex %]
        [% row.duplex_admin | html_entity %] / [% row.duplex | html_entity %]
        [% END %][% END %]
      [% IF params.c_lastchange %] | [% row.get_column('lastchange_stamp') | html_entity %][% END %]
      [% IF params.c_name %] | [% row.name | html_entity %][% END %]
      [% IF params.c_speed %] | [% row.speed | html_entity %][% END %]
      [% IF params.c_mac %] | [% row.mac | html_entity %][% END %]
      [% IF params.c_mtu %] | [% row.mtu | html_entity %][% END %]
      [% IF params.c_vlan %] | [% row.vlan | html_entity %][% END %]
      [% IF params.c_vmember %] | [%# this is really ugly because for some reason
            I could not get size/max to work on row.tagged_vlans.all %]
        [% SET output = '' %]
        [% SET count  = 0  %]
        [% FOREACH vlan IN row.tagged_vlans %]
          [% SET output = output _
            '' _ vlan.vlan _ '' %]
          [% SET output = output _ ', ' IF NOT loop.last %]
          [% SET count = count + 1 %]
        [% END %]
        [% IF count > 10 %]
          [% SET output = ' [% END %]
      [% IF params.c_connected %](' _ count _ ')'
            _ 'Show VLANs ' _ output %]
          [% SET output = output _ '' %]
        [% END %]
        [% output %] | [% IF row.remote_ip %]
          [% IF row.neighbor %]
          
            [% row.neighbor.dns.remove(settings.domain_suffix) || row.neighbor.ip %]
            ([% row.remote_port | html_entity %])
          [% ELSE %]
          n
          [% row.remote_ip %] ([% row.remote_port %]) [% END %]
      [% IF params.c_stp %]([% row.remote_type %]) / ([% row.remote_id %])
          [% END %]
        [% END %]
        [% FOREACH node IN row.get_nodes(params.n_archived) %]
          [% '
 ' IF row.remote_ip OR NOT loop.first %]
          [% 'a  ' IF NOT node.active %]
          [% node.mac %]
          [% ' (' _ node.time_last _ ')' IF params.n_age %]
          [% IF params.n_ip %]
            [% FOREACH ip IN node.ips %]
 [% 'a  ' IF NOT ip.active %]
              [% SET dns = ip.dns %]
              [% IF dns %]
              [% ip.dns %] ([% ip.ip %])
              [% ELSE %]
              [% ip.ip %]
              [% END %]
            [% END %]
          [% END %]
        [% END %]
 | [% row.stp | html_entity %][% END %]
      [% IF params.c_up %] | [% row.up_admin | html_entity %] / [% row.up | html_entity %][% END %] | 
    [% END %]