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
Branches
Tags
No related merge requests found
...@@ -525,20 +525,6 @@ def _get_dashboard_data(ifc): ...@@ -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): def _load_interface_bundles(config, hostname=None, use_next_redis=False):
result = dict() result = dict()
...@@ -569,8 +555,8 @@ def _load_interface_bundles(config, hostname=None, use_next_redis=False): ...@@ -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): def _load_services(config, hostname=None, use_next_redis=False):
# if hostname: if hostname:
# hostname = get_ims_equipment_name(hostname) hostname = get_ims_equipment_name(hostname)
result = dict() result = dict()
key_pattern = f'ims:interface_services:{hostname}:*' \ 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