diff --git a/spinifex/network/reconcile/apply.go b/spinifex/network/reconcile/apply.go index c7e20c623..500e03bc2 100644 --- a/spinifex/network/reconcile/apply.go +++ b/spinifex/network/reconcile/apply.go @@ -104,7 +104,7 @@ func (r *reconciler) applySubnets(ctx context.Context, intent IntentState, actua } } - if existing, err := r.ovn.FindDHCPOptionsByCIDR(ctx, spec.CIDR.String()); err != nil || existing == nil { + if existing, err := r.ovn.FindDHCPOptionsByExternalID(ctx, "spinifex:subnet_id", subnetID); err != nil || existing == nil { opts := &nbdb.DHCPOptions{ CIDR: spec.CIDR.String(), Options: map[string]string{