blob: 89f1f432f113a9c7e26192a022c250d2e3d07e25 [file] [log] [blame]
Yoonseon Han32aae2e2016-10-11 16:46:04 -07001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * 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
7 *
8 * 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.
15 */
16package org.onosproject.incubator.net.virtual.provider;
17
18import org.onosproject.incubator.net.virtual.NetworkId;
19import org.onosproject.net.flow.FlowRule;
20
21/**
22 * Abstraction of a virtual flow rule provider.
23 * This provider virtualizes and de-virtualizes FlowRule.
24 * See {@link org.onosproject.net.flow.FlowRule}.
25 */
26public interface VirtualFlowRuleProvider extends VirtualProvider {
27
28 /**
29 * Instructs the provider to apply the specified flow rules to their
30 * respective virtual devices.
31 *
32 * @param networkId the identity of the virtual network where this rule applies
33 * @param flowRules one or more flow rules
34 */
35 void applyFlowRule(NetworkId networkId, FlowRule... flowRules);
36
37 /**
38 * Instructs the provider to remove the specified flow rules to their
39 * respective virtual devices.
40 *
41 * @param networkId the identity of the virtual network where this rule applies
42 * @param flowRules one or more flow rules
43 */
44 void removeFlowRule(NetworkId networkId, FlowRule... flowRules);
45}