Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4033

Criterion decoder codec crashes if ethType not specified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1

      Description

      The flowing command will crash ONOS and return a 500 error:

      curl -u onos:rocks -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{
      \"priority\": 100,
      \"isPermanent\": \"false\",
      \"timeout\": 100,
      \"flag\": \"VERSATILE\",
      \"operation\": \"ADD\",
      \"selector\": {
      \"criteria\": [

      {\"type\": \"ETH_TYPE\", \"ethTypexx\": 2048}

      ,

      {\"type\": \"IN_PORT\", \"port\": \"2\"}

      ,

      {\"type\": \"ETH_DST\", \"mac\": \"00:00:00:00:00:01\"}

      ,

      {\"type\": \"ETH_SRC\", \"mac\": \"00:00:00:00:00:04\"}

      ]
      },
      \"treatment\":
      {
      \"instructions\":
      [

      {\"type\":\"OUTPUT\",\"port\":2}

      ],
      \"deferred\":[]
      }
      }" http://192.168.56.51:8181/onos/v1/flowobjectives/of:0000000000000001/forward

        Attachments

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

          Activity

            People

            Assignee:
            ray Ray Milkey
            Reporter:
            ray Ray Milkey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: