NETVIRT-1630 migrate to md-sal APIs
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / l2gw / utils / ElanRefUtil.java
index 17e874a1eb78315ad0324a8943b55633d7d37513..caa37a6fa0840b801d1176df185d88b56ac27c80 100644 (file)
@@ -10,8 +10,9 @@ package org.opendaylight.netvirt.elan.l2gw.utils;
 import javax.inject.Inject;
 import javax.inject.Singleton;
 
-import org.opendaylight.controller.md.sal.binding.api.DataBroker;
 import org.opendaylight.infrautils.jobcoordinator.JobCoordinator;
+import org.opendaylight.mdsal.binding.api.DataBroker;
+import org.opendaylight.netvirt.elan.cache.ConfigMcastCache;
 import org.opendaylight.netvirt.elan.cache.ElanInstanceCache;
 import org.opendaylight.netvirt.elan.cache.ElanInstanceDpnsCache;
 import org.opendaylight.netvirt.elan.cache.ElanInterfaceCache;
@@ -28,6 +29,7 @@ public class ElanRefUtil {
     private final ElanInstanceCache elanInstanceCache;
     private final ElanInstanceDpnsCache elanInstanceDpnsCache;
     private final ElanInterfaceCache elanInterfaceCache;
+    private final ConfigMcastCache configMcastCache;
 
     @Inject
     public ElanRefUtil(DataBroker dataBroker,
@@ -35,6 +37,7 @@ public class ElanRefUtil {
                        ElanInstanceCache elanInstanceCache,
                        ElanInstanceDpnsCache elanInstanceDpnsCache,
                        ElanInterfaceCache elanInterfaceCache,
+                       ConfigMcastCache configMcastCache,
                        JobCoordinator jobCoordinator,
                        Scheduler scheduler) {
         this.dataBroker = dataBroker;
@@ -42,6 +45,7 @@ public class ElanRefUtil {
         this.elanInstanceCache = elanInstanceCache;
         this.elanInstanceDpnsCache = elanInstanceDpnsCache;
         this.elanInterfaceCache = elanInterfaceCache;
+        this.configMcastCache = configMcastCache;
         this.jobCoordinator = jobCoordinator;
         this.scheduler = scheduler;
     }
@@ -73,4 +77,8 @@ public class ElanRefUtil {
     public Scheduler getScheduler() {
         return scheduler;
     }
+
+    public ConfigMcastCache getConfigMcastCache() {
+        return configMcastCache;
+    }
 }
\ No newline at end of file