We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when insert a duplicate key into map, it will be ingored.
can update key value when insert a duplicate key into map? this is useful when update logical_switch_port table external_ids column. for example,
logical_switch_port
external_ids
// lsp.ExternalIDs should be map[ key:value ] mutations := model.Mutation{ Field: &lsp.ExternalIDs, Value: map[string]string{"key": "value"}, Mutator: ovsdb.MutateOperationInsert, } ops, err := c.ovnNbClient.Where(lsp).Mutate(lsp, mutations) if err != nil { return err } if err := c.Transact("ls-set-external-ids", ops); err != nil { return err } // insert `key` repeatedly, lsp.ExternalIDs should be map[ key:value1 ] mutations := model.Mutation{ Field: &lsp.ExternalIDs, Value: map[string]string{"key": "value1"}, Mutator: ovsdb.MutateOperationInsert, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when insert a duplicate key into map, it will be ingored.
can update key value when insert a duplicate key into map?
this is useful when update
logical_switch_port
tableexternal_ids
column.for example,
The text was updated successfully, but these errors were encountered: