Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-35

Unable to push flow with ENQUEUE as action via curl command in Opendaylig​ht Controller

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • adsal
    • None
    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aboch@cisco.com Alessandro Boch
            manish.kr10@gmail.com Manish Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: