Skip to content
Snippets Groups Projects
Commit 97ccb616 authored by Erik Reid's avatar Erik Reid
Browse files

removed some unused imports

parent 220cf0a9
No related branches found
No related tags found
No related merge requests found
import logging
from flask import Blueprint, Response, current_app
from inventory_provider import router_details
from inventory_provider.tasks.app import app
from inventory_provider.constants import TASK_LOGGER_NAME
......
......@@ -8,7 +8,7 @@ from lxml import etree
from inventory_provider.tasks.app import app
from inventory_provider import config
from inventory_provider import juniper, snmp, netconf
from inventory_provider import snmp, netconf
from inventory_provider import constants
logging.basicConfig(level=logging.WARNING)
......@@ -74,30 +74,6 @@ app.user_options['worker'].add(worker_args)
app.steps['worker'].add(WorkerArgs)
# @app.task(bind=InventoryTask)
# def juniper_refresh_bgp(self, hostname):
# InventoryTask.save_key_json(
# hostname,
# "bgp",
# juniper.fetch_bgp_config(hostname, InventoryTask.config["ssh"]))
#
#
# @app.task(bind=InventoryTask)
# def juniper_refresh_vrr(self, hostname):
# InventoryTask.save_key_json(
# hostname,
# "vrr",
# juniper.fetch_vrr_config(hostname, InventoryTask.config["ssh"]))
#
#
# @app.task(bind=InventoryTask)
# def juniper_refresh_interfaces(self, hostname):
# InventoryTask.save_key_json(
# hostname,
# "interfaces",
# juniper.fetch_interfaces(hostname, InventoryTask.config["ssh"]))
@app.task(bind=InventoryTask)
def snmp_refresh_interfaces(self, hostname, community):
InventoryTask.save_key_json(
......
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