Commit c4fc35db authored by Kat Hößel's avatar Kat Hößel
Browse files

Allow 2 linknets

parent b2449f63
......@@ -164,7 +164,7 @@ class Device(cnaas_nms.db.base.Base):
linknets = self.get_links_to(session, peer_device)
if not linknets:
return None
elif len(linknets) > 1:
elif len(linknets) > 2:
raise ValueError("Multiple linknets between devices not supported")
else:
linknet = linknets[0]
......
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