Bulk merge of l2gw changes
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / l2gw / listeners / HwvtepTerminationPointListener.java
index 71f58a194986642725f0016923e39bd775410a07..b43ff9a44cb1fa6cf267ce6d146c2f5ab47f4bdc 100644 (file)
@@ -20,7 +20,7 @@ import java.util.concurrent.ExecutionException;
 import javax.inject.Inject;
 import javax.inject.Singleton;
 import org.opendaylight.genius.datastoreutils.hwvtep.HwvtepClusteredDataTreeChangeListener;
-import org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache;
+import org.opendaylight.genius.utils.hwvtep.HwvtepHACache;
 import org.opendaylight.genius.utils.hwvtep.HwvtepSouthboundConstants;
 import org.opendaylight.genius.utils.hwvtep.HwvtepSouthboundUtils;
 import org.opendaylight.genius.utils.hwvtep.HwvtepUtils;
@@ -53,7 +53,6 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-
 /**
  * Listener for physical locator presence in operational datastore.
  */
@@ -71,8 +70,7 @@ public class HwvtepTerminationPointListener
 
     @Inject
     public HwvtepTerminationPointListener(DataBroker broker, ElanL2GatewayUtils elanL2GatewayUtils,
-            ElanClusterUtils elanClusterUtils, L2GatewayCache l2GatewayCache,
-            HwvtepNodeHACache hwvtepNodeHACache) {
+            ElanClusterUtils elanClusterUtils, L2GatewayCache l2GatewayCache) {
         //super(TerminationPoint.class, HwvtepTerminationPointListener.class, hwvtepNodeHACache);
 
         super(broker, DataTreeIdentifier.create(LogicalDatastoreType.OPERATIONAL,
@@ -80,7 +78,7 @@ public class HwvtepTerminationPointListener
                 .child(Topology.class, new TopologyKey(HwvtepSouthboundConstants.HWVTEP_TOPOLOGY_ID)).child(Node.class)
                 .child(TerminationPoint.class)),
             Executors.newListeningSingleThreadExecutor("HwvtepTerminationPointListener", LOG),
-            hwvtepNodeHACache);
+            HwvtepHACache.getInstance());
         this.broker = broker;
         this.txRunner = new ManagedNewTransactionRunnerImpl(broker);
         this.elanL2GatewayUtils = elanL2GatewayUtils;