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.sal.flowprogrammer;
12 import org.opendaylight.controller.sal.core.Node;
13 import org.opendaylight.controller.sal.utils.Status;
16 * Interface for installing/removing flows on a network node
21 public interface IFlowProgrammerService {
23 * Add a flow to the network node
28 Status addFlow(Node node, Flow flow);
31 * Modify existing flow on the switch
36 Status modifyFlow(Node node, Flow oldflow, Flow newFlow);
39 * Remove the flow from the network node
43 Status removeFlow(Node node, Flow flow);
46 * Remove all flows present on the network node
49 Status removeAllFlows(Node node);