Skip to content

Commit

Permalink
incusd/network/ovn: Fix bad route check
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jan 29, 2025
1 parent 02856c6 commit 96cba75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/network/ovn/ovn_nb_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 96cba75

Please sign in to comment.