BUG-2218: Keep existing link augmentations during discovery process
[controller.git] / opendaylight / adsal / forwardingrulesmanager / api / src / main / java / org / opendaylight / controller / forwardingrulesmanager / PortGroupChangeListener.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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
9 package org.opendaylight.controller.forwardingrulesmanager;
10
11 import java.util.Map;
12
13 import org.opendaylight.controller.sal.core.Node;
14
15 /**
16  * PortGroupChangeListener listens to the PortGroup updates provided by the
17  * PortGroupProvider.
18  *
19  *
20  */
21 public interface PortGroupChangeListener {
22     /**
23      * This method is invoked by PortGroupProvider whenever it detects a change
24      * in PortGroup membership for a given PortGroupConfig.
25      *
26      * @param config
27      *            Port Group Configuration
28      * @param portGroupData
29      *            HashMap of Node id to PortGroup that represents the updated
30      *            ports as detected by PortGroupProvider.
31      * @param add
32      *            true indicates that the PortGroup is added. False indicates
33      *            that the PortGroup is removed.
34      */
35     void portGroupChanged(PortGroupConfig config, Map<Node, PortGroup> portGroupData, boolean add);
36 }