Skip to content

Commit

Permalink
ndb: Merge pull request #1215 from cactusFriday/bridge_fdb-mixed-up-i…
Browse files Browse the repository at this point in the history
…ndexes

reorder af_bridge_fdb table indexes in a right way

Bug-Url: #1215
  • Loading branch information
svinota authored Oct 24, 2024
2 parents 3a9dca8 + 1dce901 commit e2dfb2a
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', 'flags')
.unique_index('ifindex', 'flags', 'NDA_DST', 'NDA_LLADDR', 'NDA_VLAN')
.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 e2dfb2a

Please sign in to comment.