OpenDaylight Controller functional modules.
[controller.git] / opendaylight / forwardingrulesmanager / src / main / java / org / opendaylight / controller / forwardingrulesmanager / PortGroupChangeListener.java
diff --git a/opendaylight/forwardingrulesmanager/src/main/java/org/opendaylight/controller/forwardingrulesmanager/PortGroupChangeListener.java b/opendaylight/forwardingrulesmanager/src/main/java/org/opendaylight/controller/forwardingrulesmanager/PortGroupChangeListener.java
new file mode 100644 (file)
index 0000000..3479f29
--- /dev/null
@@ -0,0 +1,32 @@
+
+/*
+ * Copyright (c) 2013 Cisco Systems, Inc. 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.controller.forwardingrulesmanager;
+
+import java.util.Map;
+
+import org.opendaylight.controller.sal.core.Node;
+
+/**
+ * PortGroupChangeListener listens to the PortGroup updates provided by the PortGroupProvider.
+ *
+ *
+ */
+public interface PortGroupChangeListener {
+    /**
+     * This method is invoked by PortGroupProvider whenever it detects a change in PortGroup
+     * membership for a given PortGroupConfig.
+     *
+     * @param config Port Group Configuration
+     * @param portGroupData HashMap of Node id to PortGroup that represents the updated ports as detected by PortGroupProvider.
+     * @param add true indicates that the PortGroup is added. False indicates that the PortGroup is removed.
+     */
+    void portGroupChanged(PortGroupConfig config,
+            Map<Node, PortGroup> portGroupData, boolean add);
+}