Merge "Bug 8174:Update v3po yangs in vpp renderer"
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / api / BridgeDomainManager.java
index 1b8f8b01ce0148a4ffb9a788e84fc8f7d66c80e9..15b5a30a1187b4c5b0363de2fd1df2bf1399a80a 100644 (file)
@@ -10,7 +10,8 @@ package org.opendaylight.groupbasedpolicy.renderer.vpp.api;
 
 import javax.annotation.Nonnull;
 
-import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.VxlanVni;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.l2.types.rev130827.VlanId;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev170315.VxlanVni;
 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
 
 import com.google.common.util.concurrent.ListenableFuture;
@@ -23,22 +24,34 @@ public interface BridgeDomainManager {
     /**
      * Creates a bridge domain on VPP node and it also adds tunnels of the bridge domain to VXLAN
      * full mesh topology
-     * 
+     *
      * @param bridgeDomainName name of bridge domain
      * @param vni VXLAN VNI used in full mesh topology for the given bridge domain
-     * @param vppNode VPP node where the bridge domain should be created
+     * @param vppNodeId VPP node where the bridge domain should be created
      * @return {@link ListenableFuture}
      */
-    ListenableFuture<Void> createVxlanBridgeDomainOnVppNode(@Nonnull String bridgeDomainName, @Nonnull VxlanVni vni,
-            NodeId vppNode);
+    ListenableFuture<Void> createVxlanBridgeDomainOnVppNode(@Nonnull String bridgeDomainName, @Nonnull VxlanVni vni, @Nonnull NodeId vppNodeId);
+
+    /**
+     * Creates a bridge domain on VPP node and it also adds tunnels of the bridge domain to VLAN
+     * full mesh topology
+     *
+     * @param bridgeDomainName name of bridge domain
+     * @param vlanId VLAN ID used in full mesh topology for the given bridge domain
+     * @param vppNodeId VPP node where the bridge domain should be created
+     * @return {@link ListenableFuture}
+     */
+
+    ListenableFuture<Void> createVlanBridgeDomainOnVppNode(@Nonnull String bridgeDomainName, @Nonnull VlanId vlanId, @Nonnull NodeId vppNodeId);
 
     /**
      * Removes a bridge domain from VPP node and it also removes tunnels of the bridge domain from
      * VXLAN full mesh topology
-     * 
+     *
      * @param bridgeDomainName name of bridge domain
      * @param vppNode VPP node where the bridge domain should be removed from
      * @return {@link ListenableFuture}
      */
     ListenableFuture<Void> removeBridgeDomainFromVppNode(@Nonnull String bridgeDomainName, NodeId vppNode);
+
 }