Checkstyle enforcer
[controller.git] / opendaylight / switchmanager / api / src / main / java / org / opendaylight / controller / switchmanager / ISpanAware.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.switchmanager;
11
12 import java.util.List;
13
14 import org.opendaylight.controller.sal.core.Node;
15 import org.opendaylight.controller.sal.core.NodeConnector;
16
17 /**
18  * The interface provides the methods for notifying when span ports
19  * are configured/unconfigured.
20  */
21 public interface ISpanAware {
22     /**
23      * This method is called when list of ports in a node are added/deleted as span ports.
24      *
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.
28      */
29     public void spanUpdate(Node node, List<NodeConnector> portList, boolean add);
30 }