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

Minimum values of SET_TP_SRC and SET_TP_DST are incorrectly set to 1.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Helium
    • None
    • adsal
    • None
    • Operating System: All
      Platform: All

    • 1536

    Description

      Minimum values of SET_TP_SRC and SET_TP_DST actions are incorrectly set to 1 in SAL (Service Abstraction Layer).

      Therefore, when I tried to install a flow entry which contains an action "SET_TP_SRC=0", the following error message was output.

      ERROR o.o.controller.sal.action.Action - Invalid field value assignement. For type: setTpSrc Expected: [0x1-0xffff], Got: 0x0

      Because the range of TCP port and UDP port includes 0, the minimum values of SET_TP_SRC and SET_TP_DST actions must be set to 0.

      What I used to reproduce the issue
      ----------------------------------

      The latest version of the Base Edition on August 12th, 2014.
      I built the Base Edition from source code of the Git repository of Integration group.

      $ git log -3 --oneline
      759ec09 Updating VTN OF13 to get mininet to start with OpenFlow13
      418c937 Patch to fix VTN after OVSDB changed Neutron artifact name
      7b21316 BUG-1255 extension proposal

      How to reproduce the issue
      --------------------------

      1. Start up the Base Edition.

      $ ./run.sh

      2. Install a flow entry by using REST API of FlowProgrammer.

      For example, you can use the REST API by executing curl command on Linux as follows.

      $ curl --user "admin":"admin" -H "Content-type: application/json" -X PUT \
      http://localhost:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow0 \
      -d '{ "installInHw":"true", "name":"flow0", "node":

      {"id":"00:00:00:00:00:00:00:01","type":"OF"}

      ,"ingressPort":"2","priority":"501","etherType":"0x800","protocol":"tcp","actions":["SET_TP_SRC=0"] }'

      You can see the following error message in the OSGi console right after you execute the above command.

      ERROR o.o.controller.sal.action.Action - Invalid field value assignement. For type: setTpSrc Expected: [0x1-0xffff], Got: 0x0

      Attachments

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

        Activity

          People

            Hideyuki1985 Hideyuki Tai
            Hideyuki1985 Hideyuki Tai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: