Skip to content
Snippets Groups Projects
Commit 3de32cc1 authored by Sam Roberts's avatar Sam Roberts
Browse files

remove unneeded functions

parent ea3aeac4
No related branches found
Tags 0.111
1 merge request!30Feature/pol1 775 poller interfaces cache built from preparsed
......@@ -688,23 +688,6 @@ def _load_netconf_interfaces(config, hostname=None, is_lab=False, use_next_redis
key = m.group(1)
yield key, doc['value']
# def _load_netconf_interface_hosts(config, hostname=None, is_lab=False, use_next_redis=False):
# filter_pattern = _get_filter_pattern('netconf-interfaces-hosts', hostname, is_lab)
# for doc in common.load_json_docs(
# config_params=config,
# key_pattern=filter_pattern,
# num_threads=20,
# use_next_redis=use_next_redis):
# m = re.match(r'^netconf-interfaces-hosts:(.+)$', doc['key'])
# if m:
# router = m.group(1)
# for host in doc['value']:
# interface = host['interface name']
# key = f'{router}:{interface}'
# yield key, host
def _load_netconf_interface_bundles(config, hostname=None, is_lab=False, use_next_redis=False):
filter_pattern = _get_filter_pattern('netconf-interface-bundles', hostname, is_lab)
for doc in common.load_json_docs(
......@@ -733,7 +716,6 @@ def _load_interfaces(
interfaces = dict(_load_netconf_interfaces(config, hostname, is_lab, use_next_redis))
interface_bundles = dict(_load_netconf_interface_bundles(config, hostname, is_lab, use_next_redis))
# interface_hosts = dict(_load_netconf_interface_hosts(config, hostname, is_lab, use_next_redis))
for key, ifc in interfaces.items():
router, interface_name = key.split(':')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment