Phaneendra Manda | 0c42342 | 2016-04-19 00:31:53 +0530 | [diff] [blame^] | 1 | /* |
| 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 | */ |
| 16 | package org.onosproject.vtnrsc.portchainsfmap; |
| 17 | |
| 18 | import java.util.List; |
| 19 | |
| 20 | import org.onosproject.vtnrsc.PortChainId; |
| 21 | import org.onosproject.vtnrsc.ServiceFunctionGroup; |
| 22 | |
| 23 | /** |
| 24 | * Service for interacting with the inventory of service functions for a given port chain. |
| 25 | */ |
| 26 | public interface PortChainSfMapService { |
| 27 | |
| 28 | /** |
| 29 | * Returns true if the port chain exists. |
| 30 | * |
| 31 | * @param portChainId port chain identifier |
| 32 | * @return true or false if one with the given identifier exists. |
| 33 | */ |
| 34 | boolean exists(PortChainId portChainId); |
| 35 | |
| 36 | /** |
| 37 | * Returns the list of service function groups available in the given port chain. |
| 38 | * |
| 39 | * @param portChainId port chain id |
| 40 | * @return list of service functions |
| 41 | */ |
| 42 | List<ServiceFunctionGroup> getServiceFunctions(PortChainId portChainId); |
| 43 | |
| 44 | } |