[RFE] Only enforce policy when selected option does not match default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Certain API behaviors are regulated by oslo.policy policy at a granular level, but also have default values. If a user supplies API options that match the defaults, bypass the policy check since the result will be the same regardless.
A good example of this is creating a port with the the boolean "enable_
Implementation
--------------
The policy check occurs almost immediately upon request reciept. Check for calls to enforce() in neutron/
[1] example: https:/
Changed in neutron: | |
importance: | Wishlist → Low |
importance: | Low → Wishlist |
Changed in neutron: | |
status: | New → Confirmed |
1) Why implement this in Neutron? Why not in oslo.policy?
2) What is the use case that requires this change? In other words, what's the potential gain for the effort put in implementing this proposal?