[CONTROLLER-35] Unable to push flow with ENQUEUE as action via curl command in Opendaylig​ht Controller Created: 23/Sep/13  Updated: 25/Jul/23  Resolved: 05/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Manish Kumar Assignee: Alessandro Boch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC



 Description   

While trying the push the flow via cURL command as follows:

curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://127.0.0.1:8080/controller/nb/v2/flow/default/OF/10:20:00:00:00:00:00:01/new-flow -d '{"installInHw":"true","name":"new-flow","node":

{"@id":"10:20:00:00:00:00:00:01","@type":"OF"}

,"ingressPort":"3","priority":"500","nwSrc":"192.168.1.1","actions":"OUTPUT=2"}'

Result:
1.It is working fine when the "action":"OUTPUT=2" is provided as an argument.[OK]
2.dump-flows is displaying the correct action type.[OK]
3.The ODC(command line) is displaying the correct action type[OK]
4.ODC GUI is showing the correct flow with proper action type.[OK]

But while trying the push the flow via cURL command as follows(pushing the flow with "action":"ENQUEUE=3:1"):

curl --user "admin":"admin" -H "Accept: application/json" -H "Content-type: application/json" -X POST http://127.0.0.1:8080/controller/nb/v2/flow/default/OF/10:20:00:00:00:00:00:01/new-flow -d '{"installInHw":"true","name":"new-flow","node":

{"@id":"10:20:00:00:00:00:00:01","@type":"OF"}

,"ingressPort":"3","priority":"500","nwSrc":"192.168.1.1","actions":"ENQUEUE=3:1"}'

Issues found are described below:

1.dump-flows is displaying the action type as DROP.[NOT OK]
2.The ODC(command line) is not displaying the correct action type. It is displaying as empty[NOT OK]
3.ODC GUI is showing the correct flow with proper action type. May be it is skipping[OK]

Please provide the support to set the flow with ENQUEUE as an action type



 Comments   
Comment by Carol Sanders [ 05/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Generated at Wed Feb 07 19:52:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.