BUG 2862 - alien flow ID when priority is missing. 51/21851/1
authorJozef Gloncak <jgloncak@cisco.com>
Thu, 4 Jun 2015 07:45:19 +0000 (09:45 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Thu, 4 Jun 2015 07:45:26 +0000 (09:45 +0200)
commit19622f6f0ea04a46bffda0d7900c2b2b7a1c88c4
tree93b75cef9d8baf3a054b5b66f656fd567e1304dd
parent3b1e6fb5a6649abe7df47d2b3bb181229cb5cbc1
BUG 2862 - alien flow ID when priority is missing.

Problem was:
- flow was sent to device
- attempt to write flow registry - fails (NPE) because missing priority
- flow was written to device
- statistics bring info about flow
- flow isn't found in flow registry therefore alien ID is generated for it.

Solution:
- sending of flow to device is executed only after storing flow to flow
registry. If it is unsuccessful then nothing is sent to device. Flow is thus
stored only in config DS.

Change-Id: I371d4030c41ac0866fb3615b8c2380aef5b283e2
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/SalFlowServiceImpl.java