Feature/pol1 775 poller interfaces cache built from preparsed
Merged
requested to merge feature/POL1-775-poller-interfaces-cache-built-from-preparsed into develop
1 unresolved thread
Changes cache generation to use pre-parsed netconf caches in Redis. All unit tests pass as of writing.
Merge request reports
Activity
requested review from @Robert.Latta
assigned to @sam.roberts
684 def _load_docs(key_pattern): 701 def _load_netconf_caches(is_lab=False): 685 702 686 for doc in _load_netconf_docs(config, key_pattern, use_next_redis): 703 interfaces = dict(_load_netconf_parsed_cache(config, 'netconf-interfaces', 704 hostname, is_lab, use_next_redis)) 705 interface_bundles = dict(_load_netconf_parsed_cache(config, 'netconf-interface-bundles', 706 hostname, is_lab, use_next_redis)) 687 707 688 for ifc in juniper.list_interfaces(doc['netconf']): 689 if not ifc['description']: 690 continue 708 for key, ifc in interfaces.items(): 709 router, interface_name = key.split('-----') 710 bundle = interface_bundles.get(key, []) 711 if not ifc['description']: mentioned in commit 732fb649
Please register or sign in to reply