f6eb2d6f3a1a4ac00e55e0bcd6d3216b0cfc3429
[netvirt.git] / elanmanager / api / src / main / java / org / opendaylight / netvirt / elanmanager / api / IL2gwService.java
1 /*
2  * Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. 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.netvirt.elanmanager.api;
10
11 import java.util.List;
12 import java.util.Set;
13
14 import javax.annotation.Nullable;
15 import org.opendaylight.netvirt.neutronvpn.api.l2gw.L2GatewayDevice;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
17 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateway.connections.attributes.l2gatewayconnections.L2gatewayConnection;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.l2gateways.rev150712.l2gateways.attributes.l2gateways.L2gateway;
20
21 public interface IL2gwService {
22     void provisionItmAndL2gwConnection(L2GatewayDevice l2GwDevice, String psName,
23                                        String hwvtepNodeId, IpAddress tunnelIpAddr);
24
25     List<L2gatewayConnection> getL2GwConnectionsByL2GatewayId(Uuid l2GatewayId);
26
27     void addL2GatewayConnection(L2gatewayConnection input);
28
29     void addL2GatewayConnection(L2gatewayConnection input,
30                                 @Nullable String l2GwDeviceName,
31                                 L2gateway l2Gateway);
32
33     List<L2gatewayConnection> getAssociatedL2GwConnections(Set<Uuid> l2GatewayIds);
34 }