added site to device tooltip (#128)
This commit is contained in:
@@ -31,6 +31,8 @@ def create_node(device):
|
|||||||
node_content += "<tr><th>Serial: </th><td>" + device.serial + "</td></tr>"
|
node_content += "<tr><th>Serial: </th><td>" + device.serial + "</td></tr>"
|
||||||
if device.primary_ip is not None:
|
if device.primary_ip is not None:
|
||||||
node_content += "<tr><th>IP Address: </th><td>" + str(device.primary_ip.address) + "</td></tr>"
|
node_content += "<tr><th>IP Address: </th><td>" + str(device.primary_ip.address) + "</td></tr>"
|
||||||
|
if device.site is not None:
|
||||||
|
node_content += "<tr><th>Site: </th><td>" + device.site.name + "</td></tr>"
|
||||||
|
|
||||||
dev_title = "<table> %s </table>" % (node_content)
|
dev_title = "<table> %s </table>" % (node_content)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user