Skip to content

Commit

Permalink
ndb: Merge pull request #1200 from C2Devel/bugfix/fdb-missing-event
Browse files Browse the repository at this point in the history
ndb: fix FDB non-uniquness on different FLAGS

Bug-Url: #1200
Bug-Url: #1159
  • Loading branch information
svinota authored Jul 1, 2024
2 parents 59b4a72 + 3d4bddb commit 6655907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroute2/ndb/objects/neighbour.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def load_ndmsg(schema, target, event):

brmsg_schema = (
ndmsg.sql_schema()
.unique_index('ifindex', 'NDA_LLADDR', 'NDA_DST', 'NDA_VLAN')
.unique_index('ifindex', 'NDA_LLADDR', 'NDA_DST', 'NDA_VLAN', 'flags')
.constraint('NDA_LLADDR', "NOT NULL DEFAULT ''")
.constraint('NDA_DST', "NOT NULL DEFAULT ''")
.constraint('NDA_VLAN', "NOT NULL DEFAULT 0")
Expand Down

0 comments on commit 6655907

Please sign in to comment.