diff --git a/internal/server/network/ovn/ovn_nb_actions.go b/internal/server/network/ovn/ovn_nb_actions.go index b8ef1e2b78..28fab280c5 100644 --- a/internal/server/network/ovn/ovn_nb_actions.go +++ b/internal/server/network/ovn/ovn_nb_actions.go @@ -2765,6 +2765,11 @@ func (o *NB) SetChassisGroupPriority(ctx context.Context, haChassisGroupName OVN operations = append(operations, updateOps...) } + // Skip the transaction if nothing changed. + if len(operations) == 0 { + return nil + } + // Apply the changes. resp, err := o.client.Transact(ctx, operations...) if err != nil {