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(), ) )