adding chassis-id colunm to lldp information

This commit is contained in:
Jay Gheewala 2017-01-13 21:30:44 +00:00
parent 424963e49b
commit 15b6834c7e

View File

@ -16,6 +16,7 @@
<th>Configured Interface</th> <th>Configured Interface</th>
<th>LLDP Device</th> <th>LLDP Device</th>
<th>LLDP Interface</th> <th>LLDP Interface</th>
<th>LLDP Chassis-Id</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -36,6 +37,7 @@
{% endif %} {% endif %}
<td class="device"></td> <td class="device"></td>
<td class="interface"></td> <td class="interface"></td>
<td class="chassis-id"></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
@ -57,6 +59,7 @@ $(document).ready(function() {
// Add LLDP neighbors to table // Add LLDP neighbors to table
row.children('td.device').html(neighbor['name']); row.children('td.device').html(neighbor['name']);
row.children('td.interface').html(neighbor['remote-interface']); row.children('td.interface').html(neighbor['remote-interface']);
row.children('td.chassis-id').html(neighbor['chassis-id']);
// Apply colors to rows // Apply colors to rows
if (!configured_device && neighbor['name']) { if (!configured_device && neighbor['name']) {
row.addClass('info'); row.addClass('info');