blob: 4c0d98d44fdcaa720231e34e980e84743ba10b86 [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska83e090e2014-10-22 14:25:35 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
Thomas Vachuska83e090e2014-10-22 14:25:35 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Thomas Vachuska83e090e2014-10-22 14:25:35 -070015 */
tom0eb04ca2014-08-25 14:34:51 -070016package org.onlab.onos.net.flow;
17
alshabiba7f7ca82014-09-22 11:41:23 -070018import org.onlab.onos.net.DeviceId;
tomc1a38d32014-08-25 23:01:32 -070019import org.onlab.onos.net.provider.ProviderService;
tom0eb04ca2014-08-25 14:34:51 -070020
21/**
tom8bb16062014-09-12 14:47:46 -070022 * Service through which flow rule providers can inject information into
tom0eb04ca2014-08-25 14:34:51 -070023 * the core.
24 */
tomd7356722014-08-26 01:07:39 -070025public interface FlowRuleProviderService extends ProviderService<FlowRuleProvider> {
tom0eb04ca2014-08-25 14:34:51 -070026
27 /**
tom8bb16062014-09-12 14:47:46 -070028 * Signals that a flow rule that was previously installed has been removed.
tom0eb04ca2014-08-25 14:34:51 -070029 *
Thomas Vachuska4b420772014-10-30 16:46:17 -070030 * @param flowEntry removed flow entry
tom0eb04ca2014-08-25 14:34:51 -070031 */
alshabib1c319ff2014-10-04 20:29:09 -070032 void flowRemoved(FlowEntry flowEntry);
tom0eb04ca2014-08-25 14:34:51 -070033
34 /**
alshabib5c370ff2014-09-18 10:12:14 -070035 * Pushes the collection of flow entries currently applied on the given
36 * device.
37 *
Yuta HIGUCHI5c947272014-11-03 21:39:21 -080038 * @param deviceId device identifier
Thomas Vachuska4b420772014-10-30 16:46:17 -070039 * @param flowEntries collection of flow rules
alshabib5c370ff2014-09-18 10:12:14 -070040 */
alshabib1c319ff2014-10-04 20:29:09 -070041 void pushFlowMetrics(DeviceId deviceId, Iterable<FlowEntry> flowEntries);
alshabib5c370ff2014-09-18 10:12:14 -070042
tom0eb04ca2014-08-25 14:34:51 -070043}