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.util.List;
12 import java.util.ArrayList;
14 public class LogicalGroupInterfaceInfo extends InterfaceInfo {
17 List of vxlan/GRE physical tunnel interfaces makes a logical tunnel interface
18 between a pair of DPNs
22 private List<String> parentInterfaceNames;
24 public LogicalGroupInterfaceInfo(String portName, BigInteger srcDpId,List<String> pInterfaces) {
25 super(srcDpId,portName);
27 parentInterfaceNames = new ArrayList(pInterfaces);
30 public List<String> getParentInterfaceNames() {
31 return parentInterfaceNames;
34 public void addParentInterfaceName(String parentIfname) {
35 parentInterfaceNames.add(parentIfname);
38 public int getTotalParentInterfaces() {
39 return parentInterfaceNames.size();
42 public void deleteParentInterfaceName(String parentIfname) {
43 parentInterfaceNames.remove(parentIfname);