L2gateway: Added yang, APIs,Transcriber for L2gateway.
[neutron.git] / neutron-spi / src / main / java / org / opendaylight / neutron / spi / NeutronCRUDInterfaces.java
index 6e4513e4a58c1d0aaa004adf4369c8e59cdf7695..5a9477ee8ea4078b94a0250f76b5a47efabf4b17 100644 (file)
@@ -39,6 +39,8 @@ public class NeutronCRUDInterfaces {
     private INeutronVPNServiceCRUD vpnInterface;
     private INeutronVPNIPSECSiteConnectionsCRUD ipsecScInterface;
     private INeutronBgpvpnCRUD bgpvpnInterface;
+    private INeutronL2gatewayCRUD l2gatewayInterface;
+    private INeutronL2gatewayConnectionCRUD l2gatewayConnectionInterface;
 
     public NeutronCRUDInterfaces() {
     }
@@ -115,6 +117,14 @@ public class NeutronCRUDInterfaces {
         return ipsecpInterface;
     }
 
+    public INeutronL2gatewayCRUD getL2gatewayInterface() {
+        return l2gatewayInterface;
+    }
+
+    public INeutronL2gatewayConnectionCRUD getL2gatewayConnectionInterface() {
+        return l2gatewayConnectionInterface;
+    }
+
     public void setVPNServiceInterface(INeutronVPNServiceCRUD iface) {
         vpnInterface = iface;
     }
@@ -236,6 +246,16 @@ public class NeutronCRUDInterfaces {
         return this;
     }
 
+    public NeutronCRUDInterfaces fetchINeutronL2gatewayCRUD(Object obj) {
+        l2gatewayInterface = (INeutronL2gatewayCRUD) getInstances(INeutronL2gatewayCRUD.class, obj);
+        return this;
+    }
+
+    public NeutronCRUDInterfaces fetchINeutronL2gatewayConnectionCRUD(Object obj) {
+        l2gatewayConnectionInterface = (INeutronL2gatewayConnectionCRUD) getInstances(INeutronL2gatewayConnectionCRUD.class, obj);
+        return this;
+    }
+
     public Object getInstances(Class<?> clazz, Object bundle) {
         try {
             BundleContext bCtx = FrameworkUtil.getBundle(bundle.getClass()).getBundleContext();