From 6baf45b62900f4e8d32e3027217d0601dab9feaa Mon Sep 17 00:00:00 2001 From: Ember 'n0emis' Keske Date: Tue, 10 Mar 2026 18:45:42 +0100 Subject: [PATCH] evpn vpws: filter by interface id instead of device --- cosmo/l2vpnhelpertypes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cosmo/l2vpnhelpertypes.py b/cosmo/l2vpnhelpertypes.py index 5bdecb7..36212b0 100644 --- a/cosmo/l2vpnhelpertypes.py +++ b/cosmo/l2vpnhelpertypes.py @@ -373,10 +373,7 @@ def processInterfaceTypeTermination(self, o: InterfaceType) -> dict | None: # find local end local = next( filter( - lambda i: ( - isinstance(i, InterfaceType) - and i.getAssociatedDevice() == parent_device - ), + lambda i: (isinstance(i, InterfaceType) and i == o), parent_l2vpn.getTerminations(), ) )