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
8 package org.opendaylight.vpnservice.interfacemgr.globals;
10 import java.math.BigInteger;
11 import java.net.InetAddress;
14 import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
15 import org.opendaylight.vpnservice.mdsalutil.InstructionInfo;
16 import org.opendaylight.vpnservice.mdsalutil.MatchInfo;
18 public class LogicalGroupInterfaceInfo extends InterfaceInfo {
21 List of vxlan/GRE physical tunnel interfaces makes a logical tunnel interface
22 between a pair of DPNs
26 private List<String> parentInterfaceNames;
28 public LogicalGroupInterfaceInfo(String portName, BigInteger srcDpId,List<String> pInterfaces) {
29 super(srcDpId,portName);
31 parentInterfaceNames = new ArrayList(pInterfaces);
34 public List<String> getParentInterfaceNames() {
35 return parentInterfaceNames;
38 public void addParentInterfaceName(String parentIfname) {
39 parentInterfaceNames.add(parentIfname);
42 public int getTotalParentInterfaces() {
43 return parentInterfaceNames.size();
46 public void deleteParentInterfaceName(String parentIfname) {
47 parentInterfaceNames.remove(parentIfname);
52 /*--------------------------------*/