ELAN FT Support for BE
[vpnservice.git] / interfacemgr / interfacemgr-api / src / main / java / org / opendaylight / vpnservice / interfacemgr / globals / LogicalGroupInterfaceInfo.java
diff --git a/interfacemgr/interfacemgr-api/src/main/java/org/opendaylight/vpnservice/interfacemgr/globals/LogicalGroupInterfaceInfo.java b/interfacemgr/interfacemgr-api/src/main/java/org/opendaylight/vpnservice/interfacemgr/globals/LogicalGroupInterfaceInfo.java
new file mode 100644 (file)
index 0000000..c8206d0
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.vpnservice.interfacemgr.globals;
+
+import java.math.BigInteger;
+import java.net.InetAddress;
+import java.util.*;
+
+import org.opendaylight.vpnservice.mdsalutil.ActionInfo;
+import org.opendaylight.vpnservice.mdsalutil.InstructionInfo;
+import org.opendaylight.vpnservice.mdsalutil.MatchInfo;
+
+public class LogicalGroupInterfaceInfo extends InterfaceInfo {
+
+    /*
+         List of vxlan/GRE physical tunnel interfaces makes a logical tunnel interface
+         between a pair of DPNs
+
+     */
+
+    private List<String> parentInterfaceNames;
+
+    public LogicalGroupInterfaceInfo(String portName, BigInteger srcDpId,List<String> pInterfaces) {
+        super(srcDpId,portName);
+
+        parentInterfaceNames = new ArrayList(pInterfaces);
+    }
+
+    public List<String> getParentInterfaceNames() {
+        return parentInterfaceNames;
+    }
+
+    public void addParentInterfaceName(String parentIfname) {
+        parentInterfaceNames.add(parentIfname);
+    }
+
+    public int getTotalParentInterfaces() {
+        return parentInterfaceNames.size();
+    }
+
+    public void deleteParentInterfaceName(String parentIfname) {
+        parentInterfaceNames.remove(parentIfname);
+    }
+
+}
+
+/*--------------------------------*/
+