Skip to content

Commit

Permalink
ndb: fix FDB non-uniquness on different FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulev committed Jun 27, 2024
1 parent 59b4a72 commit 3d4bddb
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 3d4bddb

Please sign in to comment.