Skip to content
Snippets Groups Projects
Commit 3ad6403d authored by Robert Latta's avatar Robert Latta
Browse files

Reinstated hostname conversion; removed redundant code

parent 06c5bffb
No related branches found
No related tags found
No related merge requests found
......@@ -525,20 +525,6 @@ def _get_dashboard_data(ifc):
}
def _add_dashboards(interfaces):
"""
generator that dashboards to each interfaces.
:param interfaces: result of _load_interfaces
:return: generator with `dashboards` populated in each element
"""
for ifc in interfaces:
dashboards = _get_dashboards(ifc)
ifc['dashboards'] = sorted([d.name for d in dashboards])
yield _get_dashboard_data(ifc)
def _load_interface_bundles(config, hostname=None, use_next_redis=False):
result = dict()
......@@ -569,8 +555,8 @@ def _load_interface_bundles(config, hostname=None, use_next_redis=False):
def _load_services(config, hostname=None, use_next_redis=False):
# if hostname:
# hostname = get_ims_equipment_name(hostname)
if hostname:
hostname = get_ims_equipment_name(hostname)
result = dict()
key_pattern = f'ims:interface_services:{hostname}:*' \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment