Fixed validation bug of YANG import statement
[controller.git] / opendaylight / forwardingrulesmanager / src / main / java / org / opendaylight / controller / forwardingrulesmanager / PortGroupChangeListener.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.forwardingrulesmanager;
11
12 import java.util.Map;
13
14 import org.opendaylight.controller.sal.core.Node;
15
16 /**
17  * PortGroupChangeListener listens to the PortGroup updates provided by the PortGroupProvider.
18  *
19  *
20  */
21 public interface PortGroupChangeListener {
22     /**
23      * This method is invoked by PortGroupProvider whenever it detects a change in PortGroup
24      * membership for a given PortGroupConfig.
25      *
26      * @param config Port Group Configuration
27      * @param portGroupData HashMap of Node id to PortGroup that represents the updated ports as detected by PortGroupProvider.
28      * @param add true indicates that the PortGroup is added. False indicates that the PortGroup is removed.
29      */
30     void portGroupChanged(PortGroupConfig config,
31             Map<Node, PortGroup> portGroupData, boolean add);
32 }