[OPNFLWPLUG-211] lists of actions are not ordered consistently Created: 08/Jul/14 Updated: 27/Sep/21 Resolved: 19/Aug/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Colin Dixon | Assignee: | Shigeru Yasuda |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Issue Links: |
|
||||||||
| External issue ID: | 1338 | ||||||||
| Description |
|
Reported on the mailing list here: If you have the YANG data model, have you tried specifying "ordered-by-user" in the list? ---- Hi folks, I observed that flow actions in a flow entry were reordered unexpectedly when I tested VTN with OF13 plugin. I configured 3 actions in a flow entry (via sal-compatibility): action[0]: PUSH_VLAN But above actions were encoded into an OF13 FLOW_MOD as follows: action[0]: OUTPUT I embedded some trace logs into the controller source, then I observed that flow actions in MD-SAL flow were already reordered when _applyActions=ApplyActions [ And I enabled trace logging for BindingToNormalizedNodeCodec class in sal-binding-broker, then I observed that MD-SAL actions were deserialized out of order. 2014-07-09 00:37:40.849 GMT+09:00 [pool-17-thread-1] TRACE \ 2014-07-09 00:37:40.851 GMT+09:00 [pool-17-thread-1] TRACE \ 2014-07-09 00:37:40.851 GMT+09:00 [pool-17-thread-1] TRACE \ The order of elements in a YANG data list seems to be unspecified because it may be randomized by deserialization. My understanding is correct? Regards, – |
| Comments |
| Comment by Colin Dixon [ 08/Jul/14 ] |
|
Should be fixed by https://git.opendaylight.org/gerrit/#/c/8830/ Waiting for confirmation on the mailing list. |
| Comment by Shigeru Yasuda [ 09/Jul/14 ] |
|
Verified that this issue was fixed by the following patch. |
| Comment by Rob Adams [ 05/Aug/14 ] |
|
This patch fixes the issue for me and I think it's more "correct" than changing the yang model in the way that has been proposed. |
| Comment by Kamal Rameshan [ 08/Aug/14 ] |
|
Two gerrits have been added : Openflowplugin: https://git.opendaylight.org/gerrit/#/c/9214/ This would take care the ordering of the actions as well as instructions and table-feature-properties Currently waiting for api freeze waiver and review. |
| Comment by Kamal Rameshan [ 15/Aug/14 ] |
|
Hi Shigeru, Can you please take the latest and check if this issue is fixed. Please mark it resolved once reviewed. Thanks |
| Comment by Abhijit Kumbhare [ 18/Aug/14 ] |
|
Shigeru, Colin, Can you guys check? This is merged now. Abhijit |
| Comment by Shigeru Yasuda [ 19/Aug/14 ] |
|
I verified that merged patches fixed the issue I reported. |