Commit c1c15958 authored by kk's avatar kk
Browse files

flake8_f401_webapp_inv

parent 275cd2c5
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.coverage application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2014 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.lib.app.docinline import DocInline
from noc.inv.models.coverage import Coverage
from noc.inv.models.coveredobject import CoveredObject
......
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.firmware application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2017 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.inv.models.firmware import Firmware
from noc.core.translation import ugettext as _
......
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.firmwarepolicy application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.inv.models.firmwarepolicy import FirmwarePolicy
from noc.core.translation import ugettext as _
......
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.interfaceclassificationrule application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2014 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.inv.models.interfaceclassificationrule import InterfaceClassificationRule
from noc.core.translation import ugettext as _
......
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.interfaceprofile application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2012 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.inv.models.interfaceprofile import InterfaceProfile
from noc.core.translation import ugettext as _
......
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.modelinterface application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2014 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.inv.models.modelinterface import ModelInterface
from noc.core.translation import ugettext as _
......
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# inv.modelmapping application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2013 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extdocapplication import ExtDocApplication, view
from noc.lib.app.extdocapplication import ExtDocApplication
from noc.inv.models.modelmapping import ModelMapping
from noc.core.translation import ugettext as _
......
......@@ -2,14 +2,10 @@
# ---------------------------------------------------------------------
# inv.reportdiscovery
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Python modules
import datetime
# Django modules
from django.db.models import Count
# NOC modules
from noc.lib.app.simplereport import SimpleReport, SectionRow, TableColumn
from noc.sa.models.managedobject import ManagedObject
......
......@@ -2,12 +2,11 @@
# ---------------------------------------------------------------------
# inv.reportdiscoverycaps
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# Python modules
import operator
# Third-party modules
from django import forms
# NOC modules
from noc.lib.app.simplereport import SimpleReport
......@@ -67,4 +66,4 @@ class ReportDiscoveryCapsApplication(SimpleReport):
title=self.title,
columns=columns,
data=data
)
)
# -*- coding: utf-8 -*-
"""
# ---------------------------------------------------------------------
# inv.reportdiscovery
# ---------------------------------------------------------------------
# Copyright (C) 2007-2016 The NOC Project
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
"""
# Python modules
import operator
import re
from collections import defaultdict
# Third-party modules
from django import forms
# NOC modules
from noc.core.cache.base import cache
......@@ -103,7 +102,6 @@ class ReportPendingLinks(object):
"remote_id": "%s; %s; %s" % (mo.name, mo.profile.name, iface),
"remote_iface": pend_str.group("remote_iface")}
# print(discovery["problems"]["lldp"])
pass
n += 10000
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment