Skip to content

Commit

Permalink
operational_intents_handler: make mentioning OIR being updated in key…
Browse files Browse the repository at this point in the history
…s optional.
  • Loading branch information
Shastick committed Mar 11, 2024
1 parent 9147b9b commit 5e2a653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scd/operational_intents_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ func (a *Server) PutOperationalIntentReference(ctx context.Context, manager stri
}
for _, relevantOp := range relevantOps {
_, ok := key[relevantOp.OVN]
if !ok && relevantOp.RequiresKey() {
// Note: The OIR being mutated does not need to be specified in the key:
if !ok && relevantOp.RequiresKey() && relevantOp.ID != id {
if relevantOp.Manager != dssmodels.Manager(manager) {
relevantOp.OVN = scdmodels.NoOvnPhrase
}
Expand Down

0 comments on commit 5e2a653

Please sign in to comment.