Bug 2369: Fixed NPE in update-flow RPC. 89/12789/4
authorShigeru Yasuda <s-yasuda@da.jp.nec.com>
Wed, 12 Nov 2014 17:13:25 +0000 (02:13 +0900)
committermichal rehak <mirehak@cisco.com>
Fri, 28 Nov 2014 06:35:53 +0000 (06:35 +0000)
commit021542f27de529f3a253569b34981090a684a26a
tree7376ae997817d419cd33217757f85c83269a1b19
parent5babf6a243fa671276b4bb9c04d7a1e8f3b607e3
Bug 2369: Fixed NPE in update-flow RPC.

  - Need to check whether match in update-flow input is null.
  - Interpret null priority in update-flow input as default priority.
  - Original flow should be removed if any of the following fields is
    changed.
    - idle-timeout
    - hard-timeout
    - flags
    - cookie

Change-Id: I64c4ff66ce4965cbd8c9e9a608082ef2b5a84439
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/OFRpcTaskFactory.java
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/FlowConvertor.java
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/util/FlowCreatorUtil.java
openflowplugin/src/test/java/org/opendaylight/openflowplugin/openflow/md/util/FlowCreatorUtilTest.java