ELAN FT Support for BE
[vpnservice.git] / interfacemgr / interfacemgr-api / src / main / java / org / opendaylight / vpnservice / interfacemgr / globals / LogicalGroupInterfaceInfo.java
1 /*
2  * Copyright (c) 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 package org.opendaylight.vpnservice.interfacemgr.globals;
9
10 import java.math.BigInteger;
11 import java.net.InetAddress;
12 import java.util.*;
13
14 import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
15 import org.opendaylight.vpnservice.mdsalutil.InstructionInfo;
16 import org.opendaylight.vpnservice.mdsalutil.MatchInfo;
17
18 public class LogicalGroupInterfaceInfo extends InterfaceInfo {
19
20     /*
21          List of vxlan/GRE physical tunnel interfaces makes a logical tunnel interface
22          between a pair of DPNs
23
24      */
25
26     private List<String> parentInterfaceNames;
27
28     public LogicalGroupInterfaceInfo(String portName, BigInteger srcDpId,List<String> pInterfaces) {
29         super(srcDpId,portName);
30
31         parentInterfaceNames = new ArrayList(pInterfaces);
32     }
33
34     public List<String> getParentInterfaceNames() {
35         return parentInterfaceNames;
36     }
37
38     public void addParentInterfaceName(String parentIfname) {
39         parentInterfaceNames.add(parentIfname);
40     }
41
42     public int getTotalParentInterfaces() {
43         return parentInterfaceNames.size();
44     }
45
46     public void deleteParentInterfaceName(String parentIfname) {
47         parentInterfaceNames.remove(parentIfname);
48     }
49
50 }
51
52 /*--------------------------------*/
53