[OPNFLWPLUG-12] set-tos-action does not work Created: 04/Jan/14 Updated: 27/Sep/21 Due: 25/Jan/14 Resolved: 25/Jan/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Jan Medved | Assignee: | Jyotsna Priya |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| External issue ID: | 269 |
| Priority: | Normal |
| Description |
|
when set-tos-action is used in a flow-add operation from restconf, no flow-mod message is sent to the switch. All other parameters of the flow with a different action. The following xml can be used to reproduce the problem: <?xml version="1.0" encoding="UTF-8" standalone="no"?> USe HTTP PUT with the following URL: |
| Comments |
| Comment by Martin Sunal [ 10/Jan/14 ] |
|
All values are put into a transaction correctly including set-nw-tos-action. It seems that bug is in another component - moved to md-sal |
| Comment by Tony Tkacik [ 21/Jan/14 ] |
|
Action went correct thru MD-SAL as in log below [_setNwTosAction=SetNwTosAction [_tos=1, augmentation=[]] 2014-01-21 11:36:29.053 CET [md-sal-binding-commit-2] INFO o.o.c.m.s.c.i.service.TwoPhaseCommit - Transaction: BA-3 Started. Moving to Openflow Plugin |
| Comment by Gaurav Bhagwani [ 22/Jan/14 ] |
|
Can it be confirmed please that are we testing this particular action on 1.0 switch or 1.3 switch since SetNwTosAction is 1.0 specific |
| Comment by Michal Polkorab [ 22/Jan/14 ] |
|
Same issue as I have debugged the serialization and found out that the problem is in the OF Plugin. Logs when debugging openflowjava: Problem is in the ActionConvertor, where the received action was SetNwTosActionCase
2014-01-22 14:45:48.779 CET [md-sal-binding-commit-16] ERROR o.o.o.o.m.c.s.c.ActionConvertor - Unknown Action Type for the Version I am not familiar with the md-sal's models, but it is probably needed to choose the correct action depending on the version first, and then finding the corresponding action. (In this case I believe it should have been SetField action with OXM_OF_IP_DSCP oxm-field) NOTE: if (flow.getInstructions() != null) { flowMod.setInstructions(toInstructions(flow.getInstructions(), version,datapathid)); flowMod.setActionsList(getActionsList(flow.getInstructions(), version,datapathid)); }actions should be filled only in case of OF 1.0, instructions in case of OF 1.3. |
| Comment by Ed Warnicke [ 24/Jan/14 ] |
|
Should be fixed by https://git.opendaylight.org/gerrit/#/c/4697/ Please check for merge status. |
| Comment by Gaurav Bhagwani [ 24/Jan/14 ] |
|
Hi Ed, https://git.opendaylight.org/gerrit/#/c/4697/ does not maps set-nwtos to OF1.3 action, so guess shouldnt be fixed by this review |
| Comment by Vaclav Demcak [ 24/Jan/14 ] |
|
REST - put / get is corrected but sudo ovs-ofctl -O OpenFlow13 dump-flows s1 |
| Comment by Gaurav Bhagwani [ 24/Jan/14 ] |
|
this should work : http://git.opendaylight.org/gerrit/4736 |
| Comment by Deepankar Gupta [ 25/Jan/14 ] |
|
Verified patch http://git.opendaylight.org/gerrit/4736 and it is found to be working correctly. Following is the test procedure that I followed: Step 1: The following xml was used: <?xml version="1.0" encoding="UTF-8" standalone="no"?> Step 2: Restclient GET using the same URL mentioned above: Successfull. Step 3: mininet> dpctl dump-flows
|
| Comment by Vaclav Demcak [ 25/Jan/14 ] |
|
Tested for every tests : actions=set_field:1->nw_tos_shifted |