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;
16 * The interface provides methods to notify listeners about subnet and mode
19 public interface ISwitchManagerAware {
21 * The method is called when subnet is added/deleted
23 * @param sub {@link org.opendaylight.controller.switchmanager.Subnet}
24 * @param add true if add; false if delete.
26 public void subnetNotify(Subnet sub, boolean add);
29 * The method is called when proactive/reactive mode is changed in a node
31 * @param node {@link org.opendaylight.controller.sal.core.Node}
32 * @param proactive true if mode is set as proactive; false if mode is reactive.
34 public void modeChangeNotify(Node node, boolean proactive);