NETVIRT-1227 : L2gw with multisegment network fail 07/71307/2
authoreaksahu <a.k.sahu@ericsson.com>
Wed, 25 Apr 2018 11:38:58 +0000 (17:08 +0530)
committerSam Hague <shague@redhat.com>
Thu, 26 Apr 2018 13:10:19 +0000 (13:10 +0000)
Because of wrong index being captured in debug mode , failing with
ArrayIndexOutOfBoundException and elan instance creation is failing.

Change-Id: I0ef479bb5e545e4c8587dfa077ab4334afe778b3
Signed-off-by: eaksahu <a.k.sahu@ericsson.com>
neutronvpn/impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronNetworkChangeListener.java

index bfe85571e3c644120b53c29a1947736ee734fd2f..1b0dc56d5944aca496423f31ac7a2544ae52e62e 100644 (file)
@@ -211,7 +211,7 @@ public class NeutronNetworkChangeListener
             }
             elanSegmentsBuilder.setSegmentationIndex(index);
             segments.add(elanSegmentsBuilder.build());
-            LOG.debug("Added segment {} to ELANInstance", segments.get((int)index - 1));
+            LOG.debug("Added segment {} to ELANInstance", segments.get((int)index));
         }
         return segments;
     }