blob: bacff0dbcd9cb0a0609a408fc039c226acca27e3 [file] [log] [blame]
Thomas Vachuska83e090e2014-10-22 14:25:35 -07001/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
tom0eb04ca2014-08-25 14:34:51 -070019package org.onlab.onos.net.flow;
20
alshabiba7f7ca82014-09-22 11:41:23 -070021import org.onlab.onos.net.DeviceId;
tomc1a38d32014-08-25 23:01:32 -070022import org.onlab.onos.net.provider.ProviderService;
tom0eb04ca2014-08-25 14:34:51 -070023
24/**
tom8bb16062014-09-12 14:47:46 -070025 * Service through which flow rule providers can inject information into
tom0eb04ca2014-08-25 14:34:51 -070026 * the core.
27 */
tomd7356722014-08-26 01:07:39 -070028public interface FlowRuleProviderService extends ProviderService<FlowRuleProvider> {
tom0eb04ca2014-08-25 14:34:51 -070029
30 /**
tom8bb16062014-09-12 14:47:46 -070031 * Signals that a flow rule that was previously installed has been removed.
tom0eb04ca2014-08-25 14:34:51 -070032 *
tom8bb16062014-09-12 14:47:46 -070033 * @param flowRule information about the removed flow
tom0eb04ca2014-08-25 14:34:51 -070034 */
alshabib1c319ff2014-10-04 20:29:09 -070035 void flowRemoved(FlowEntry flowEntry);
tom0eb04ca2014-08-25 14:34:51 -070036
37 /**
alshabib5c370ff2014-09-18 10:12:14 -070038 * Pushes the collection of flow entries currently applied on the given
39 * device.
40 *
tomc104d282014-09-19 10:57:55 -070041 * @param flowRules collection of flow rules
alshabib5c370ff2014-09-18 10:12:14 -070042 */
alshabib1c319ff2014-10-04 20:29:09 -070043 void pushFlowMetrics(DeviceId deviceId, Iterable<FlowEntry> flowEntries);
alshabib5c370ff2014-09-18 10:12:14 -070044
alshabib219ebaa2014-09-22 15:41:24 -070045
46
tom0eb04ca2014-08-25 14:34:51 -070047}