3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
10 package org.opendaylight.controller.switchmanager;
12 import org.opendaylight.controller.sal.core.Node;
14 import org.opendaylight.controller.switchmanager.Subnet;
17 * The interface provides methods to notify listeners about subnet and mode
20 public interface ISwitchManagerAware {
22 * The method is called when subnet is added/deleted
24 * @param sub {@link org.opendaylight.controller.switchmanager.Subnet}
25 * @param add true if add; false if delete.
27 public void subnetNotify(Subnet sub, boolean add);
30 * The method is called when proactive/reactive mode is changed in a node
32 * @param node {@link org.opendaylight.controller.sal.core.Node}
33 * @param proactive true if mode is set as proactive; false if mode is reactive.
35 public void modeChangeNotify(Node node, boolean proactive);