sk2 / autonetkit

AutoNetkit: an automated network configuration engine
BSD 3-Clause "New" or "Revised" License
129 stars 49 forks source link

Bug copying edge bindings from ANM->NIDB #250

Closed sk2 closed 10 years ago

sk2 commented 10 years ago

phy {3430021387564': 2, '3430020387561': 2} {'3430020387561': 1, '3430019387558': 1} {'3430020387561': 3, '3430019387558': 2} {'3430021387564': 1, '3430019387558': 3}

nidb {'3430021387564': 2, '3430020387561': 2} {'3430020387561': 1, '3430019387558': 1} {'3430020387561': 1, '3430019387558': 1} {'3430021387564': 1, '3430019387558': 3}

can see {'3430020387561': 1, '3430019387558': 1} isn't correctly bound

sk2 commented 10 years ago

Was copied across correctly, but not returning the edge key in the graph iterator: DmBase edges: all_edges = [DmEdge(self, src, dst) for src, dst, key in valid_edges]

should be all_edges = [DmEdge(self, src, dst, key) for src, dst, key in valid_edges]

otherwise returns the first edge for each parallel link - not what we want!