2 * Copyright (c) 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.genius.interfacemanager.interfaces;
11 import java.math.BigInteger;
12 import java.util.List;
14 import org.opendaylight.genius.interfacemanager.exceptions.InterfaceAlreadyExistsException;
15 import org.opendaylight.genius.interfacemanager.globals.InterfaceInfo;
16 import org.opendaylight.genius.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.genius.interfacemanager.servicebinding.rev160406.service.bindings.ServicesInfo;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.service.bindings.services.info.BoundServices;
20 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.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) throws InterfaceAlreadyExistsException;
50 public void createVLANInterface(String interfaceName, String portName, BigInteger dpId, Integer vlanId,
51 String description, IfL2vlan.L2vlanMode l2vlanMode, boolean isExternal) throws InterfaceAlreadyExistsException;
53 public void bindService(String interfaceName, BoundServices serviceInfo);
54 public void unbindService(String interfaceName, BoundServices serviceInfo);
55 List<Interface> getVlanInterfaces();
56 List<Interface> getVxlanInterfaces();
57 public Interface getInterfaceInfoFromConfigDataStore(String interfaceName);