diff --git a/hyperglass/configuration/__init__.py b/hyperglass/configuration/__init__.py
index 374f981..d2d9f72 100644
--- a/hyperglass/configuration/__init__.py
+++ b/hyperglass/configuration/__init__.py
@@ -66,6 +66,12 @@ class dev:
list.append(str(r["name"]))
return list
+ def display_name():
+ list = []
+ for r in routers_list:
+ list.appen(str(r["display_name"]))
+ return list
+
class gen:
"""Functions to import config variables and return default values if undefined"""
diff --git a/hyperglass/hyperglass.py b/hyperglass/hyperglass.py
index f20a5bc..d79a354 100644
--- a/hyperglass/hyperglass.py
+++ b/hyperglass/hyperglass.py
@@ -110,6 +110,7 @@ def get_routers(asn):
dict(
location=r["location"],
hostname=r["name"],
+ display_name=r["display_name"],
type=r["type"],
requiresIP6Cidr=True,
)
@@ -119,6 +120,7 @@ def get_routers(asn):
dict(
location=r["location"],
hostname=r["name"],
+ display_name=r["display_name"],
type=r["type"],
requiresIP6Cidr=False,
)
diff --git a/hyperglass/render/templates/index.html b/hyperglass/render/templates/index.html
index b01b43e..12a31d0 100644
--- a/hyperglass/render/templates/index.html
+++ b/hyperglass/render/templates/index.html
@@ -88,10 +88,10 @@
-