|
[% 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 = ' (' _ count _ ') '
_ 'Show VLANs' _ output %]
[% SET output = output _ ' ' %]
[% END %]
[% output %]
|
[% END %]
[% IF params.c_connected %]
[% row.connected | html_entity %] |
[% END %]
[% IF params.c_stp %]
[% row.stp | html_entity %] |
[% END %]
[% IF params.c_up %]
[% row.up_admin | html_entity %] / [% row.up | html_entity %]
|
[% END %]
[% END %]