Comment 2 for bug 1440090

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Ok, so it seems that in every commissioning, new NIC's are being added, instead of only adding/removing the missing ones. This is also when there are no new nics nor deleted ones, it still seems old get removed and new get added:

Before commissioning:
In [14]: [(mac, mac.id) for mac in node.macaddress_set.all()]
Out[14]: [(<MACAddress: 52:54:00:c1:56:d0>, 17), (<MACAddress: 52:54:00:96:d6:2b>, 18)]

After commissioning:
In [15]: [(mac, mac.id) for mac in node.macaddress_set.all()]
Out[15]: [(<MACAddress: 52:54:00:c1:56:d0>, 19), (<MACAddress: 52:54:00:96:d6:2b>, 20)]

The index has changed.