Separating renderers into features.
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / SwitchListener.java
1 /*
2  * Copyright (c) 2014 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.groupbasedpolicy.renderer.ofoverlay;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
12
13 /**
14  * Interface for a listener to switch-related events
15  * @author readams
16  */
17 public interface SwitchListener {
18     /**
19      * Indicates that a new switch has entered the "ready" state
20      * @param sw the ID for the switch
21      */
22     public void switchReady(NodeId sw);
23
24     /**
25      * Indicates that a new switch has been removed from the "ready" state
26      * @param sw the ID for the switch
27      */
28     public void switchRemoved(NodeId sw);
29     
30     /**
31      * Indicated that the switch configuration, tunnel port, or external ports
32      * have changed
33      * @param sw
34      */
35     public void switchUpdated(NodeId sw);
36 }