blob: 1872295f0e43bd5fe4c6a84fc4a8f59ade47b946 [file] [log] [blame]
Mahesh Poojary Huawei512380a2015-10-28 18:46:29 +05301/*
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 */
16package org.onosproject.sfc.impl;
17
18import static org.slf4j.LoggerFactory.getLogger;
19
20import org.apache.felix.scr.annotations.Activate;
21import org.apache.felix.scr.annotations.Component;
22import org.apache.felix.scr.annotations.Deactivate;
23import org.apache.felix.scr.annotations.Service;
24import org.onosproject.vtnrsc.sfc.PortChain;
25import org.slf4j.Logger;
26
27/**
28 * Provides implementation of SFC Service.
29 */
30@Component(immediate = true)
31@Service
32public class SfcManager implements SfcService {
33
34 private final Logger log = getLogger(SfcManager.class);
35
36 @Activate
37 public void activate() {
38 log.info("Started");
39 }
40
41 @Deactivate
42 public void deactivate() {
43 log.info("Stopped");
44 }
45
46 @Override
47 public void InstallFlowClassification(PortChain portChain) {
48 log.debug("InstallFlowClassification");
49 //TODO: Installation of flow classification into OVS.
50 }
51
52 @Override
53 public void UnInstallFlowClassification(PortChain portChain) {
54 log.debug("UnInstallFlowClassification");
55 //TODO: Un-installation flow classification from OVS
56 }
57
58 @Override
59 public void InstallServiceFunctionChain(PortChain portChain) {
60 log.debug("InstallServiceFunctionChain");
61 //TODO: Installation of Service Function chain into OVS.
62 }
63
64 @Override
65 public void UnInstallServiceFunctionChain(PortChain portChain) {
66 log.debug("UnInstallServiceFunctionChain");
67 //TODO: Un-installation of Service Function chain from OVS.
68 }
69}