Committed by
Ray Milkey
[ONOS-3114] sfc manager
Change-Id: I5379adfb738003654f2f49bdcd5178ba4962efb0
Showing
2 changed files
with
89 additions
and
0 deletions
| 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.impl; | ||
| 17 | + | ||
| 18 | +import static org.slf4j.LoggerFactory.getLogger; | ||
| 19 | + | ||
| 20 | +import org.apache.felix.scr.annotations.Activate; | ||
| 21 | +import org.apache.felix.scr.annotations.Component; | ||
| 22 | +import org.apache.felix.scr.annotations.Deactivate; | ||
| 23 | +import org.apache.felix.scr.annotations.Service; | ||
| 24 | +import org.onosproject.vtnrsc.sfc.PortChain; | ||
| 25 | +import org.slf4j.Logger; | ||
| 26 | + | ||
| 27 | +/** | ||
| 28 | + * Provides implementation of SFC Service. | ||
| 29 | + */ | ||
| 30 | +@Component(immediate = true) | ||
| 31 | +@Service | ||
| 32 | +public 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 | +} |
| 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 | + * SFC Service manager for interacting with SFC. | ||
| 19 | + */ | ||
| 20 | +package org.onosproject.sfc.impl; |
-
Please register or login to post a comment