[OPNFLWPLUG-478] with switch-features-mandatory set to true, switch without required features should not be allowed to connect Created: 02/Jun/15 Updated: 27/Sep/21 Resolved: 26/Jun/17 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jamo Luhrsen | Assignee: | Jamo Luhrsen |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 3549 |
| Description |
|
In the Lithium plugin redesign we now have a configuration to make switch features required: ~$ egrep features distribution-2182/etc/opendaylight/karaf/42-openflowplugin-Li.xml By default it is false and allows switches (e.g. OVS 2.0.2) that do not support all the If that config is set to true, we are currently still holding a connection with an If there is a good reason to retain the connection of this switch without the mandatory |
| Comments |
| Comment by Anton Ivanov [ 09/Sep/15 ] |
|
There is a corresponding FIXME on line 290 in openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceManagerImpl.java The session is indeed not removed - that is the present code behavior. |
| Comment by Anton Ivanov [ 11/Sep/15 ] |
|
That whole section of the code needs fixing: It does not have a FSM for the connected switch. As a result it is likely to show other undefined or erroneous behaviour when a "switch" drops or stalls a connection mid-negotiation. This needs a rewrite + a corresponding torture test (unit test or test using a 3rd party openflow library). Please do not mark as resolved until there is a matching test. |
| Comment by Tomas Slusny [ 07/Apr/17 ] |
|
Right now when this happens, entire connection is closed on both carbon and boron in Lithium design, so this should be fixed now, so this one can probably be closed. |
| Comment by Jamo Luhrsen [ 07/Apr/17 ] |
|
(In reply to Tomas Slusny from comment #3) This is an old bug, but I just tried with ovs 2.0.2 (what I noted originally) the question is then, should this old ovs 2.0.2 be rejected if mandatory |
| Comment by Jozef Bacigal [ 05/Jun/17 ] |