An atempt is made to reduce DS operations before fixed flows are 79/72779/3
authorShashidhar Raja <shashidharr@altencalsoftlabs.com>
Fri, 1 Jun 2018 13:17:33 +0000 (18:47 +0530)
committerSam Hague <shague@redhat.com>
Sun, 10 Jun 2018 01:55:48 +0000 (01:55 +0000)
commit178b1978dbc7b95b2ff05a78a1b610559a75d0c1
tree37c9b33e0c74a0dca46df454618189c58ba774d7
parentbdb120c4552e3e3d55d1f9f6b2acf63f07e1af11
An atempt is made to reduce DS operations before fixed flows are
programmed for a VM

Below are change details:
(a) In AclInterfaceStateListener, DS operation to read Interface config
object was made all the time. Now, updated to check config Interface only
when AclInterface refernce is not present at that time (ie., with the
changes, config Interface is checked only when Interface state event is
triggered before Interface state event)
(b) After performing Port lookup DS write, current behaviour is to wait for
completion of this write operation. As what ever written to port lookup is
used only during delete operation, moved add/delete port lookup to a
separate thread with the same key using jobCoordinator. With this, Port
lookup DS write is unblocked and add/delete operation of it is also been
synchronized

Change-Id: Ic6300a82006d6a8c0db3ac7bb2168612a190697f
Signed-off-by: Shashidhar Raja <shashidharr@altencalsoftlabs.com>
aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/listeners/AclInterfaceListener.java
aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/listeners/AclInterfaceStateListener.java
aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/utils/AclServiceUtils.java