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 java.util.List;
14 import org.opendaylight.controller.sal.core.Node;
15 import org.opendaylight.controller.sal.core.NodeConnector;
18 * The interface provides the methods for notifying when span ports
19 * are configured/unconfigured.
21 public interface ISpanAware {
23 * This method is called when list of ports in a node are added/deleted as span ports.
25 * @param node {@link org.opendaylight.controller.sal.core.Node} being updated
26 * @param portList list of span {@link org.opendaylight.controller.sal.core.NodeConnector}
27 * @param add true if add; false if delete.
29 public void spanUpdate(Node node, List<NodeConnector> portList, boolean add);