2 * Copyright (c) 2015 - 2016 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.vpnservice.interfacemgr.interfaces;
11 import java.math.BigInteger;
12 import java.util.List;
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;
23 public interface IInterfaceManager {
25 public Long getPortForInterface(String ifName);
28 public BigInteger getDpnForInterface(String ifName);
31 public BigInteger getDpnForInterface(Interface intrf);
34 public String getEndpointIpForDpn(BigInteger dpnId);
37 public List<ActionInfo> getInterfaceEgressActions(String ifName);
40 public Long getPortForInterface(Interface intf);
42 public InterfaceInfo getInterfaceInfo(String intInfo);
44 public InterfaceInfo getInterfaceInfoFromOperationalDataStore(String interfaceName, InterfaceInfo.InterfaceType interfaceType);
45 public InterfaceInfo getInterfaceInfoFromOperationalDataStore(String interfaceName);
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();