Skip to content
Snippets Groups Projects

Feature/pol1 775 poller interfaces cache built from preparsed

1 unresolved thread

Changes cache generation to use pre-parsed netconf caches in Redis. All unit tests pass as of writing.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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']:
  • Sam Roberts added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Sam Roberts mentioned in commit 732fb649

    mentioned in commit 732fb649

  • Please register or sign in to reply
    Loading