2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.sal.flowprogrammer;
11 import org.opendaylight.controller.sal.core.Node;
12 import org.opendaylight.controller.sal.utils.Status;
15 * Interface that defines the methods available to the functional modules above
16 * SAL for installing/modifying/removing flows on a network node
18 public interface IFlowProgrammerService {
20 * Add a flow to the network node
25 Status addFlow(Node node, Flow flow);
28 * Modify existing flow on the switch
33 Status modifyFlow(Node node, Flow oldflow, Flow newFlow);
36 * Remove the flow from the network node
41 Status removeFlow(Node node, Flow flow);
44 * Remove all flows present on the network node
48 Status removeAllFlows(Node node);