Skip to content
Snippets Groups Projects
Select Git revision
  • 3fc4f5c537e93458627a799b9f93dcaa972ca497
  • develop default
  • master protected
  • async-provision
  • DBOARD3-1252/inventory-api
  • 0.90
  • 0.89
  • 0.88
  • 0.87
  • 0.86
  • 0.85
  • 0.84
  • 0.83
  • 0.82
  • 0.81
  • 0.80
  • 0.79
  • 0.78
  • 0.77
  • 0.76
  • 0.75
  • 0.74
  • 0.73
  • 0.72
  • 0.71
25 results

setup.py

Blame
  • proxy.py 776 B
    # -*- coding: utf-8 -*- vim:fileencoding=utf-8:
    # vim: tabstop=4:shiftwidth=4:softtabstop=4:expandtab
    
    from django.conf import settings
    
    import flowspec.logging_utils
    logger = flowspec.logging_utils.logger_init_default(__name__, "celery_exabpg.log", False)
    
    logger.info(f"proxy::proxy class is {settings.PROXY_CLASS}")
    
    if not hasattr(settings, "PROXY_CLASS") or settings.PROXY_CLASS == "proxy_netconf_junos":
      logger.info("proxy::invoking netconf junos")
      from utils import proxy_netconf_junos as PR0
    elif settings.PROXY_CLASS == "proxy_exabgp":
      logger.info("proxy::invoking exabgp")
      from utils import proxy_exabgp as PR0
    elif settings.PROXY_CLASS == "proxy_exabgp_remote":
      logger.info("proxy::invoking exabgp remote")
      from utils import proxy_exabgp_remote as PR0