Added ability to switch OF roles per DPID or for all switches at once. This...
Added ability to switch OF roles per DPID or for all switches at once. This includes a REST interface and integration with the handshake and channel handlers in order to keep the switch in the correct state. An IOFConnectionListener also has the ability to listen for messages that are written now instead of read from the wire. This allows modules to write role requests, have the underlying handshake/channel substrate tap in and listen to the request, and automatically update the role of the switch when the response comes back.
Showing
- src/main/java/net/floodlightcontroller/core/OFConnection.java 7 additions, 0 deletions...main/java/net/floodlightcontroller/core/OFConnection.java
- src/main/java/net/floodlightcontroller/core/OFSwitch.java 1052 additions, 1035 deletionssrc/main/java/net/floodlightcontroller/core/OFSwitch.java
- src/main/java/net/floodlightcontroller/core/internal/IOFConnectionListener.java 13 additions, 1 deletion...dlightcontroller/core/internal/IOFConnectionListener.java
- src/main/java/net/floodlightcontroller/core/internal/OFSwitchHandshakeHandler.java 144 additions, 11 deletions...ghtcontroller/core/internal/OFSwitchHandshakeHandler.java
- src/main/java/net/floodlightcontroller/core/internal/RoleManager.java 0 additions, 1 deletion...a/net/floodlightcontroller/core/internal/RoleManager.java
- src/main/java/net/floodlightcontroller/core/web/ControllerRoleResource.java 89 additions, 22 deletions...floodlightcontroller/core/web/ControllerRoleResource.java
- src/main/java/net/floodlightcontroller/core/web/CoreWebRoutable.java 1 addition, 0 deletions...va/net/floodlightcontroller/core/web/CoreWebRoutable.java
- src/main/java/net/floodlightcontroller/core/web/SwitchRoleResource.java 282 additions, 25 deletions...net/floodlightcontroller/core/web/SwitchRoleResource.java
- src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java 1 addition, 0 deletions...ntroller/linkdiscovery/internal/LinkDiscoveryManager.java
- src/test/java/net/floodlightcontroller/core/OFSwitchBaseTest.java 1 addition, 0 deletions.../java/net/floodlightcontroller/core/OFSwitchBaseTest.java
Loading
Please register or sign in to comment