2 * Copyright (c) 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
9 package org.opendaylight.netvirt.elanmanager.api;
11 import java.util.List;
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;
21 public interface IL2gwService {
22 void provisionItmAndL2gwConnection(L2GatewayDevice l2GwDevice, String psName,
23 String hwvtepNodeId, IpAddress tunnelIpAddr);
25 List<L2gatewayConnection> getL2GwConnectionsByL2GatewayId(Uuid l2GatewayId);
27 void addL2GatewayConnection(L2gatewayConnection input);
29 void addL2GatewayConnection(L2gatewayConnection input,
30 @Nullable String l2GwDeviceName,
33 List<L2gatewayConnection> getAssociatedL2GwConnections(Set<Uuid> l2GatewayIds);