[OPNFLWPLUG-885] Enhance bulk-o-matic for bulk addition of tables Created: 25/Apr/17  Updated: 27/Sep/21  Resolved: 22/Jun/17

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Faiz Ilahi Kothari Assignee: Unassigned
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   

Bulk-o-matic is used as a test driver to check the controller's clustering capabilities. One of the tests is to verify the Pre-Leader state.

To carry out the test, it is required that there should be a way to create tables first and flows later. Also addition of a flow should be possible only when the corresponding tables are present (parent should exist before addition of the child).

Currently bulk-o-matic can add flows, but not add/delete tables. It will be great if there is a way to add tables in bulk.



 Comments   
Comment by Faiz Ilahi Kothari [ 25/Apr/17 ]

The following patch has been submitted:

https://git.opendaylight.org/gerrit/#/c/54758/

The patch introduces a new rpc to add tables and modifies existing sal-bulk-flow:flow-test rpc to accept a boolean create-parents.

The definition of sal-bulk-flow:table-test is as follows:

rpc table-test {
input {
leaf add

{ type boolean; mandatory true; status current; description "If true, adds tables, else delete tables"; }

leaf dpn-count

{ type uint32; mandatory true; status current; description "Total number of dpns to add these tables"; }

leaf start-table-id

{ type uint32; mandatory true; status current; description "Starting table id"; }

leaf end-table-id

{ type uint32; mandatory true; status current; description "Last table id"; }

}
}

The new definition of sal-bulk-flow:flow-test has a new leaf added:

leaf create-parents

{ type boolean; mandatory true; status current; description "Create parents if doesn't exist"; }

The patch adds a TableWriter which implements the table-test rpc through which tables can be added in bulk. After table addition, flows can be added using the flow-test rpc with create-parents as false to throw error in case the corresponding table is missing.

Comment by Tomas Slusny [ 22/Jun/17 ]

Patch was merged, so closing this one.

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