BUG 3005: WORKAROUND issue where match cannot differ only on extensions portion 63/18463/2
authorFlavio Fernandes <ffernand@redhat.com>
Thu, 16 Apr 2015 17:40:52 +0000 (13:40 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Thu, 16 Apr 2015 18:00:22 +0000 (14:00 -0400)
commitb7b8c847ba6e6ace31be533a21a2b15fee76ae38
treecfc907420358feec5fd70a26789b2eec56ab19d6
parent1b26c140196e0c42b6cd6092b7637e2a9955edb7
BUG 3005: WORKAROUND issue where match cannot differ only on extensions portion

The details on the original issue were discovered by Anil Vishnoi:

BUG-2757 : Openflowplugin manager doesn't use match extensions while comparing two flows
Ovsdb installs two flows which is different from each other just by the match extension (reg0) (actions are not used in comparison).

cookie=0x0, duration=255.353s, table=110, n_packets=8, n_bytes=648, priority=16384,reg0=0x1,tun_id=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1,output:2
cookie=0x0, duration=256.115s, table=110, n_packets=9, n_bytes=1464, priority=16384,reg0=0x2,tun_id=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:1

So statistics manager assign the same id internally to both the flows and that's causing the repeated error message about duplicate id.
Adding match extension in flow comparison is not trivial and we cannot implement it in this release.

Change-Id: I9d9986628fcb4996a7b7aac7af327df59201904a
Also-By: Anil Vishnoi <vishnoianil@gmail.com>
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/services/L2ForwardingService.java