Merge "L2 Gw create changes related to ITM Tunnels creation in neutronvpn module"
[vpnservice.git] / interfacemgr / interfacemgr-api / src / main / java / org / opendaylight / vpnservice / interfacemgr / interfaces / IInterfaceManager.java
1 /*
2  * Copyright (c) 2015 - 2016 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.vpnservice.interfacemgr.interfaces;
10
11 import java.math.BigInteger;
12 import java.util.List;
13
14 import org.opendaylight.vpnservice.interfacemgr.exceptions.InterfaceAlreadyExistsException;
15 import org.opendaylight.vpnservice.interfacemgr.globals.InterfaceInfo;
16 import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
17 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.servicebinding.rev151015.service.bindings.ServicesInfo;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.servicebinding.rev151015.service.bindings.services.info.BoundServices;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.vpnservice.interfacemgr.rev150331.IfL2vlan;
21
22 @Deprecated
23 public interface IInterfaceManager {
24     @Deprecated
25     public Long getPortForInterface(String ifName);
26
27     @Deprecated
28     public BigInteger getDpnForInterface(String ifName);
29
30     @Deprecated
31     public BigInteger getDpnForInterface(Interface intrf);
32
33     @Deprecated
34     public String getEndpointIpForDpn(BigInteger dpnId);
35
36     @Deprecated
37     public List<ActionInfo> getInterfaceEgressActions(String ifName);
38
39     @Deprecated
40     public Long getPortForInterface(Interface intf);
41
42     public InterfaceInfo getInterfaceInfo(String intInfo);
43
44     public InterfaceInfo getInterfaceInfoFromOperationalDataStore(String interfaceName, InterfaceInfo.InterfaceType interfaceType);
45     public InterfaceInfo getInterfaceInfoFromOperationalDataStore(String interfaceName);
46
47     public void createVLANInterface(String interfaceName, String portName, BigInteger dpId,  Integer vlanId,
48                              String description, IfL2vlan.L2vlanMode l2vlanMode);
49     public void bindService(String interfaceName, BoundServices serviceInfo);
50     public void unbindService(String interfaceName, BoundServices serviceInfo);
51     List<Interface> getVlanInterfaces();
52     List<Interface> getVxlanInterfaces();
53 }