[OPNFLWPLUG-245] Set VLAN PCP does not work Created: 18/Aug/14 Updated: 27/Sep/21 Resolved: 17/Sep/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Luis Gomez | Assignee: | James Gregory Hall |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 1566 |
| Description |
|
After pushing following flow to set VLAN-id + VLAN-PCP: { , , , } }, , I check Operational data for it: { , ], , , , } } } , I can see VLAN PCP is not being pushed to switch. I have also a wireshark capture that proves controller does not push PCP value. BR/Luis |
| Comments |
| Comment by Luis Gomez [ 18/Aug/14 ] |
|
Please use this URL to configure the flow: PUT http://<controller IP>:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0 BR/Luis |
| Comment by James Gregory Hall [ 19/Aug/14 ] |
|
So now do I suspect openflowjava code ... yes OF13SetFieldActionSerializer.serialize() is getting the full set actions ... But it ignores the second set field entry ... |
| Comment by James Gregory Hall [ 19/Aug/14 ] |
| Comment by Michal Polkorab [ 20/Aug/14 ] |
|
Please see next definition from Openflow 1.3.2 specification: Set Field actions uses the following structure and fields:
Set Field action contains only single OXM TLV, that's why openflowjava checks only the first element in the list. (List is used because of existing model) As per Greg's comment: |
| Comment by James Gregory Hall [ 20/Aug/14 ] |
|
Ok, since the ofj interface doesn't support a list of augmentations in a setField Action which is a list ... then we should modify the code to throw and exception as such. There is a lack of testing to trap this error in ofp ... the unit test runs the code but doesn't do any validation beyond catching exceptions. I'll push new changes accordingly. |
| Comment by Luis Gomez [ 20/Aug/14 ] |
|
I am not sure what is the problem you are describing here but I just followed RESTCONF API doc for set-field: case: set-field-case BR/Luis |
| Comment by Michal Rehak [ 11/Sep/14 ] |
|
Could you retest? Bug1421 contained some vlan-id and vlan-pcp fixes. Thank you. |
| Comment by Abhijit Kumbhare [ 16/Sep/14 ] |
|
Any update on this? |
| Comment by Luis Gomez [ 17/Sep/14 ] |
|
Yes, this works for me with the format suggested by Greg |