Implementing VBD API in Vpp renderer
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / api / BridgeDomainManager.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.groupbasedpolicy.renderer.vpp.api;
10
11 import javax.annotation.Nonnull;
12
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev150105.VxlanVni;
14 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
15
16 import com.google.common.util.concurrent.ListenableFuture;
17
18 /**
19  * Bridge domain manager interface.
20  */
21 public interface BridgeDomainManager {
22
23     /**
24      * Creates a bridge domain on VPP node and it also adds tunnels of the bridge domain to VXLAN
25      * full mesh topology
26      * 
27      * @param bridgeDomainName name of bridge domain
28      * @param vni VXLAN VNI used in full mesh topology for the given bridge domain
29      * @param vppNode VPP node where the bridge domain should be created
30      * @return {@link ListenableFuture}
31      */
32     ListenableFuture<Void> createVxlanBridgeDomainOnVppNode(@Nonnull String bridgeDomainName, @Nonnull VxlanVni vni,
33             NodeId vppNode);
34
35     /**
36      * Removes a bridge domain from VPP node and it also removes tunnels of the bridge domain from
37      * VXLAN full mesh topology
38      * 
39      * @param bridgeDomainName name of bridge domain
40      * @param vppNode VPP node where the bridge domain should be removed from
41      * @return {@link ListenableFuture}
42      */
43     ListenableFuture<Void> removeBridgeDomainFromVppNode(@Nonnull String bridgeDomainName, NodeId vppNode);
44 }