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;
14 * This interface defines the methods the protocol plugin must implement to
15 * inform the SAL layer about the asynchronous messages related to flow
16 * programming coming from the network nodes.
18 public interface IPluginOutFlowProgrammerService {
20 * Inform SAL that the flow on the specified node has been removed Consumer
21 * has to expect this notification only for flows which were installed with
22 * an idle or hard timeout specified.
25 * the network node on which the flow got removed
27 * the flow that got removed. Note: It may contain only the Match
28 * and flow parameters fields. Actions may not be present.
30 public void flowRemoved(Node node, Flow flow);
33 * Inform SAL that an error message has been received from a switch
34 * regarding a flow message previously sent to the switch. A Request ID
35 * associated with the offending message is also returned.
38 * the network node on which the error reported
40 * the offending message request id
44 public void flowErrorReported(Node node, long rid, Object err);