Commit 275c21d0 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov

Merge branch 'fix/segment_mac_discovery' into 'master'

Fix Segment MAC Discovery when the object links to itself

See merge request noc/noc!3161
parents 13fbf1eb d0d05dcf
......@@ -2,7 +2,7 @@
# ----------------------------------------------------------------------
# Segment MAC discovery
# ----------------------------------------------------------------------
# Copyright (C) 2007-2017 The NOC Project
# Copyright (C) 2007-2020 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
......@@ -77,7 +77,7 @@ class MACDiscoveryCheck(TopologyDiscoveryCheck):
fib = {} # object -> interface -> {seen objects}
for mo, mac, iface, ts in mtable:
ro = object_macs.get(mac)
if not ro:
if not ro or ro == mo:
continue
if mo not in fib:
fib[mo] = {}
......
Markdown is supported
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