Initial opendaylight infrastructure commit!!
[controller.git] / opendaylight / sal / api / src / main / java / org / opendaylight / controller / sal / flowprogrammer / IFlowProgrammerService.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.sal.flowprogrammer;
11
12 import org.opendaylight.controller.sal.core.Node;
13 import org.opendaylight.controller.sal.utils.Status;
14
15 /**
16  * Interface for installing/removing flows on a network node
17  *
18  *
19  *
20  */
21 public interface IFlowProgrammerService {
22     /**
23      * Add a flow to the network node
24      *
25      * @param node
26      * @param flow
27      */
28     Status addFlow(Node node, Flow flow);
29
30     /**
31      * Modify existing flow on the switch
32      *
33      * @param node
34      * @param flow
35      */
36     Status modifyFlow(Node node, Flow oldflow, Flow newFlow);
37
38     /**
39      * Remove the flow from the network node
40      * @param node
41      * @param flow
42      */
43     Status removeFlow(Node node, Flow flow);
44
45     /**
46      * Remove all flows present on the network node
47      * @param node
48      */
49     Status removeAllFlows(Node node);
50 }