[OPNFLWPLUG-951] openflow role request no equals may case error! Created: 17/Oct/17  Updated: 27/Sep/21  Resolved: 16/Apr/18

Status: Resolved
Project: OpenFlowPlugin
Component/s: clustering
Affects Version/s: None
Fix Version/s: Oxygen, Fluorine

Type: New Feature
Reporter: shen xiao Assignee: Anil Vishnoi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

Dear:
I am an opendaylight developer. I am now developing a module that requires the interface provided by the openflowplugin module. I found some problems in the interface call.
I found that there is no equals in the openflow role. This can cause some problems. For example, if there is only one switch now, if you send a slave role to it when you may find the error, so I modified the openflowplugin module added equals role.
I would like to submit modified code to the community, Can i do that?



 Comments   
Comment by Anil Vishnoi [ 12/Dec/17 ]

Equal role is a required functionality and it's good to provide an configuration knob that can be used to enable/disable the equal role. But this will have impact on the openflowplugin dependent applications as well. So to enable the equal role functionality we will to carefully review applications and what changes are required there.

Comment by Anil Vishnoi [ 12/Dec/17 ]

To answer your question about switch connecting to single controller, in that case controller will always send master role to the device. Although when switch initially connect, it blindly sends the slave role to the device, but once clustering service determine the owner ( in this case only one controller is connected to the device, so it;s going to be the owner of device), it will send the master role. So eventually switch should have the master role in it. If you don't see this behavior please open an bug for this issue.

Comment by Anil Vishnoi [ 16/Apr/18 ]

xiaoxiaome2008@163.com Equal role is not implemented in master branch and oxygen branch. You need to enable the config knob (enable-equal-role=true)  in openflowplugin.cfg file to enable it. Please re-open the bug if you don't see that fixes your problem.

Generated at Wed Feb 07 20:33:49 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.