Handling port up down event for Bug 3558
[vpnservice.git] / interfacemgr / interfacemgr-api / src / main / java / org / opendaylight / vpnservice / interfacemgr / interfaces / IInterfaceManager.java
1 /*
2  * Copyright (c) 2015 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 org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface;
12
13 import java.math.BigInteger;
14 import java.util.List;
15 import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
16 import org.opendaylight.vpnservice.mdsalutil.MatchInfo;
17
18 public interface IInterfaceManager {
19
20     public Long getPortForInterface(String ifName);
21     public BigInteger getDpnForInterface(String ifName);
22     public BigInteger getDpnForInterface(Interface intrf);
23     public String getEndpointIpForDpn(BigInteger dpnId);
24     public List<MatchInfo> getInterfaceIngressRule(String ifName);
25     public List<ActionInfo> getInterfaceEgressActions(String ifName);
26     public Long getPortForInterface(Interface intf);
27
28 }