ovs_lib.OVSBridge flow managment methods poor design
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
Aleksandr Chirko |
Bug Description
Unlike 'set_db_
- If we misspell flow parameter it just will be ignored, and instead of exception (this is what we would expect) wrong flow will be defined.
- To add more flow options we have to keep hardcoding them in '_build_
My proposition is to use similar to 'set_db_
tags: |
added: ovs removed: ovsbridge |
Changed in neutron: | |
assignee: | nobody → Aleksandr Chirko (achirko) |
description: | updated |
summary: |
- ovs_lib.OVSBridge.add_flow() method poor design + ovs_lib.OVSBridge flow managment methods poor design |
description: | updated |
Changed in neutron: | |
milestone: | none → icehouse-rc1 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | icehouse-rc1 → 2014.1 |
I think the better approach is to be more specific in the kwargs that the methods accepts. With explicit kwargs, misspellings will be detected very explicitly via run time errors vs attempting to execute a command that may fail.