Add NAC columns to UI (#941)
* Add NAC columns to UI * Compact variant with a "NAC Summary" column * display PAE stuff as very short summary in web and full columbs in csv * add tooltips for actual port status and state detail * minor naming tweaks Co-authored-by: Oliver Gorwits <oliver@cpan.org>
This commit is contained in:
committed by
GitHub
parent
3dc302b445
commit
8cc8bdcd19
@@ -144,6 +144,10 @@
|
||||
<td>Last Macsuck</td>
|
||||
<td>[% d.last_macsuck_stamp | html_entity %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>NAC / 802.1X</td>
|
||||
<td>[% IF d.pae_is_enabled %] <i class="icon-ok-sign text-success"></i> Enabled [% END %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Hardware Status</td>
|
||||
<td>Fan: [% d.fan | html_entity %]
|
||||
|
||||
@@ -318,6 +318,20 @@
|
||||
<td>[% row.ssid.ssid | html_entity %]</td>
|
||||
[% END %]
|
||||
|
||||
[% IF params.c_nac_summary %]
|
||||
<td>
|
||||
[% IF row.up == 'up' AND (row.pae_authconfig_port_status OR row.pae_authconfig_state) %]
|
||||
<i class="icon-[% row.pae_authconfig_port_status == 'authorized' ? 'ok-sign' : 'ban-circle' %]"
|
||||
rel="tooltip" data-placement="top" data-offset="3" data-animation="" data-title="[% row.pae_authconfig_port_status %]"></i>
|
||||
<i class="icon-[% row.pae_authconfig_state == 'authenticated' ? 'link' : 'unlink' %]"
|
||||
rel="tooltip" data-placement="top" data-offset="3" data-animation="" data-title="[% row.pae_authconfig_state %]"></i>
|
||||
<i class="icon-[% row.pae_authsess_mab ? 'laptop' : 'user' %]"></i>
|
||||
[% SET sessuser = (row.pae_authsess_user_net_mac.$mac_format_call || row.pae_authsess_user.remove(settings.domain_suffix)) %]
|
||||
<a href="[% search_node | none %]&q=[% sessuser | uri %]">[% sessuser | html_entity %]</a>
|
||||
[% END %]
|
||||
</td>
|
||||
[% END %]
|
||||
|
||||
[% IF params.c_nodes OR params.c_neighbors %]
|
||||
<td>
|
||||
[% IF params.c_neighbors AND (row.remote_ip OR row.is_uplink) %]
|
||||
|
||||
@@ -20,6 +20,13 @@
|
||||
[% ELSIF item.name == 'c_power' %]
|
||||
[% headers.push('PoE Status') %]
|
||||
[% headers.push('PoE Power (mW)') %]
|
||||
[% ELSIF item.name == 'c_nac_summary' %]
|
||||
[% headers.push('PAE AuthConfig Port Control') %]
|
||||
[% headers.push('PAE AuthConfig State') %]
|
||||
[% headers.push('PAE AuthConfig Port Status') %]
|
||||
[% headers.push('PAE AuthSession User') %]
|
||||
[% headers.push('PAE AuthSession MAB') %]
|
||||
[% headers.push('PAE Last EAPOL Frame Source') %]
|
||||
[% ELSIF item.name == 'c_neighbors' %]
|
||||
[% headers.push('Neighbor IP') %]
|
||||
[% headers.push('Neighbor DNS') %]
|
||||
@@ -137,6 +144,15 @@
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% IF params.c_nac_summary %]
|
||||
[% myport.push( row.pae_authconfig_port_control ) %]
|
||||
[% myport.push( row.pae_authconfig_state ) %]
|
||||
[% myport.push( row.pae_authconfig_port_status ) %]
|
||||
[% myport.push( row.pae_authsess_user ) %]
|
||||
[% myport.push( row.pae_authsess_mab ) %]
|
||||
[% myport.push( row.pae_last_eapol_frame_source ) %]
|
||||
[% END %]
|
||||
|
||||
[% IF params.c_nodes %]
|
||||
[% myport.push('') %]
|
||||
[% myport.push('') %]
|
||||
|
||||
Reference in New Issue
Block a user