neutron-lib/releasenotes/notes/transaction_constraint-d3f93c2ced4a74c6.yaml
Kevin Benton 6a2040fcdb Add interface to add a constraint to context
This adds methods to the Context to add, remove, and get a
constraint on an object to be checked before a change is
made to that object.

Related-Bug: #1493714
Change-Id: Id01c4dfb740f680e96349dc08b11b5bca6c59a74
2017-07-14 13:42:34 -07:00

10 lines
439 B
YAML

---
features:
- |
Contexts may now have transaction constraints set on them to be enforced
by the revision plugin in Neutron for generalized compare-and-swap updates.
Calling ``set_transaction_constraint`` on the context before performing a
resource mutation will setup the constraint. This is also exposed to users
via the HTTP API with ``if-match`` headers and the API layer sets the
constraint on the context.