From 3d4bddb9a842128f7c65f92b44928b284c24bacb Mon Sep 17 00:00:00 2001 From: Pavel Kulyov Date: Thu, 27 Jun 2024 16:12:37 +0300 Subject: [PATCH] ndb: fix FDB non-uniquness on different FLAGS --- pyroute2/ndb/objects/neighbour.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyroute2/ndb/objects/neighbour.py b/pyroute2/ndb/objects/neighbour.py index f8f55390b..88f6b0c68 100644 --- a/pyroute2/ndb/objects/neighbour.py +++ b/pyroute2/ndb/objects/neighbour.py @@ -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")