/* * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ 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.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId; import com.google.common.util.concurrent.ListenableFuture; /** * Bridge domain manager interface. */ 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 * @return {@link ListenableFuture} */ ListenableFuture createVxlanBridgeDomainOnVppNode(@Nonnull String bridgeDomainName, @Nonnull VxlanVni vni, NodeId vppNode); /** * 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 removeBridgeDomainFromVppNode(@Nonnull String bridgeDomainName, NodeId vppNode); }