From 96cba75b1376536e0600c0cc190c6775efa1d080 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Wed, 29 Jan 2025 17:41:32 +0100 Subject: [PATCH] incusd/network/ovn: Fix bad route check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- internal/server/network/ovn/ovn_nb_actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/network/ovn/ovn_nb_actions.go b/internal/server/network/ovn/ovn_nb_actions.go index 8ebb3df36a0..e12d53573eb 100644 --- a/internal/server/network/ovn/ovn_nb_actions.go +++ b/internal/server/network/ovn/ovn_nb_actions.go @@ -4074,7 +4074,7 @@ func (o *NB) DeleteLogicalRouterPeering(ctx context.Context, opts OVNRouterPeeri } // Skip over anything that's not tied to the current port. - if route.OutputPort != nil || *route.OutputPort != string(portName) { + if route.OutputPort == nil || *route.OutputPort != string(portName) { continue }