Mahesh Poojary Huawei
Committed by Gerrit Code Review

[ONOS-3114] sfc service

Change-Id: Ic52dc2c89f6fe01f03be384124ee4648dc7e56d7
1 +/*
2 + * Copyright 2015 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 + */
16 +package org.onosproject.sfc;
17 +
18 +import org.onosproject.vtnrsc.PortChain;
19 +
20 +/**
21 + * SFC application that applies flows to the device.
22 + */
23 +public interface SfcService {
24 + /**
25 + * Applies flow classification to OVS.
26 + *
27 + * @param portChain Port-Chain.
28 + */
29 + void InstallFlowClassification(PortChain portChain);
30 +
31 +
32 + /**
33 + * Remove flow classification from OVS.
34 + *
35 + * @param portChain Port-Chain.
36 + */
37 + void UnInstallFlowClassification(PortChain portChain);
38 +
39 + /**
40 + * Applies Service Function chain to OVS.
41 + *
42 + * @param portChain Port-Chain.
43 + */
44 + void InstallServiceFunctionChain(PortChain portChain);
45 +
46 + /**
47 + * Remove Service Function chain from OVS.
48 + *
49 + * @param portChain Port-Chain.
50 + */
51 + void UnInstallServiceFunctionChain(PortChain portChain);
52 +}
1 +/*
2 + * Copyright 2015 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 + */
16 +
17 +/**
18 + * Service for interacting with SFC.
19 + */
20 +package org.onosproject.sfc;