Commit aaa2fefb authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-discovery-poison-mac' into 'master'

Fix ReportDiscovery Poison MAC view.

See merge request !3646
parents 2cab622f c891e79a
Pipeline #23202 passed with stages
in 71 minutes and 25 seconds
......@@ -14,6 +14,7 @@ from noc.inv.models.discoveryid import DiscoveryID
from noc.sa.models.managedobject import ManagedObject
from noc.main.models.pool import Pool
from noc.core.translation import ugettext as _
from noc.core.mac import MAC
class ReportForm(forms.Form):
......@@ -60,7 +61,7 @@ class ReportDiscoveryIDPoisonApplication(SimpleReport):
data_c.append((mo.name, mo.address, mo.profile.name, mo.pool.name, mo.is_managed))
if pool and pool not in pool_c:
continue
data += [SectionRow(name="%s %s" % (f["_id"][0], reason))]
data += [SectionRow(name="%s %s" % (MAC(f["_id"][0]), reason))]
data += data_c
return self.from_dataset(
......
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