Added ability to specify the tables to receive table-miss flows for OF1.3+...
Added ability to specify the tables to receive table-miss flows for OF1.3+ switches. What we did before was insert these table-miss flows in all tables, which for OVS is 254 flows and not only is a waste of resources if the tables aren't being used, but also serverly clutters the REST API and Web UI output when listing flows. By default, the first 4 tables will receive the forward-to-controller table-miss flow. The reason for 4 is to account for a small number of software tables present on many hardware switches. If the actual number of tables is less, the lesser value will be used. To modify these settings, there are two options: (1) change the default for all switches or (2) specify the max tables to insert the table-miss flow on a per-DPID basis. These options are exposed in the floodlightdefault.properties file. Toy, no-op examples are given setting the default to 4 and two switches to 4 (the internal default is 4, thus it's a no-op). The list of switches and max tables should be given as a list of JSON key:value objects to the net.floodlightcontroller.core.internal.OFSwitchManager.maxTableToReceiveTableMissFlowPerDpid config variable. The default can be specified as an integer to the net.floodlightcontroller.core.internal.OFSwitchManager.defaultMaxTableToReceiveTableMissFlow variable.
Showing
- src/main/java/net/floodlightcontroller/core/IOFSwitchBackend.java 32 additions, 1 deletion.../java/net/floodlightcontroller/core/IOFSwitchBackend.java
- src/main/java/net/floodlightcontroller/core/OFSwitch.java 18 additions, 3 deletionssrc/main/java/net/floodlightcontroller/core/OFSwitch.java
- src/main/java/net/floodlightcontroller/core/internal/OFSwitchHandshakeHandler.java 13 additions, 7 deletions...ghtcontroller/core/internal/OFSwitchHandshakeHandler.java
- src/main/java/net/floodlightcontroller/core/internal/OFSwitchManager.java 126 additions, 17 deletions...t/floodlightcontroller/core/internal/OFSwitchManager.java
- src/main/resources/floodlightdefault.properties 2 additions, 1 deletionsrc/main/resources/floodlightdefault.properties
- src/test/java/net/floodlightcontroller/core/internal/OFSwitchHandlerTestBase.java 1092 additions, 1075 deletions...ightcontroller/core/internal/OFSwitchHandlerTestBase.java
- src/test/java/net/floodlightcontroller/core/internal/OFSwitchManagerTest.java 1 addition, 0 deletions...oodlightcontroller/core/internal/OFSwitchManagerTest.java
Loading
Please register or sign in to comment