Closed bellwood closed 8 years ago
The error indicates that multiple InterfaceConnections have been found for an Interface, which of course should never happen. Assigning a primary IP to a device shouldn't have any effect regarding interface connections. Can you check whether device 2 has any duplicate connections?
It looks like the iBGP link between both edge routers is listed twice
edge1 -> edge2 edge2 -> edge1
I dont see an edit/delete connections option though to fix this :/
Perhaps a bug in the interface validation checks - presumably I should not have been allowed to import:
{2},xe-2/2/0,{3},xe-2/2/0,connected {3},xe-2/2/0,{2},xe-2/2/0,connected
Just notating the shell-based solution we talked about in the IRC channel should anyone stumble across this:
/opt/netbox/netbox# ./manage.py shell
>>> from dcim.models import InterfaceConnection
>>> InterfaceConnection.objects.filter(interface_a__device__name='edge1', interface_a__name='xe-2/2/0').delete()
(1, {u'dcim.InterfaceConnection': 1})
>>> quit()
presumably I should not have been allowed to import
This is the root of the problem. NetBox should not have created those mirrored interface connections.
This occurred after I assigned a /32 "Primary IP" to the fxp0 interfaces on both my edge routers (devices 2 and 3)