Add SysName to Oxidized view (#10012)

* Add sysName to Oxidized view

* Add sysName to Oxidized view

* Add force_ip_to_sysname check

* Add force_ip_to_sysname check

* Add force_ip_to_sysname check Config::get method

* Add force_ip_to_sysname check Config::get method

* Add force_ip_to_sysname check loose comparison

* Add force_ip_to_sysname check loose comparison

* Fix Spacing - Travis check

* Fix Spacing - Travis check

* Travis Check

* Travis Check

* Travis check changes

* Whitespace Travis Check

* Replace ifcheck with ternary operator

Always send column id tag, but hide SysName conditionally

* Move php tags

* Remove ifcheck
This commit is contained in:
smiles1969
2019-04-01 22:19:31 -05:00
committed by Tony Murray
parent a3ef7c3d4a
commit c4fa3278b5
2 changed files with 4 additions and 0 deletions

View File

@@ -1350,6 +1350,9 @@ function get_oxidized_nodes_list()
echo "
</td>
<td>
" . $device['sysName'] . "
</td>
<td>
<i class='fa fa-square text-" . $fa_color . "'></i>
</td>
<td>

View File

@@ -30,6 +30,7 @@ $pagetitle[] = 'Oxidized';
<thead>
<tr>
<th data-column-id="hostname" data-order="desc">Hostname</th>
<th data-column-id="sysname" data-visible=" <?php echo (!Config::get('force_ip_to_sysname') ? 'true' : 'false') ?>">SysName</th>";
<th data-column-id="last_status">Last Status</th>
<th data-column-id="last_update">Last Update</th>
<th data-column-id="model">Model</th>