Priyanka B | 7991c75 | 2016-03-26 19:52:44 +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.pce.pceservice.api; |
| 17 | |
| 18 | import java.util.List; |
| 19 | |
| 20 | import org.onosproject.net.DeviceId; |
| 21 | import org.onosproject.net.intent.Constraint; |
| 22 | import org.onosproject.pce.pceservice.LspType; |
| 23 | |
| 24 | /** |
| 25 | * Service to compute path based on constraints, release path and update path with new constraints. |
| 26 | */ |
| 27 | public interface PceService { |
| 28 | |
| 29 | /** |
| 30 | * Creates new path based on constraints and lsp type. |
| 31 | * |
| 32 | * @param src source device |
| 33 | * @param dst destination device |
| 34 | * @param constraints list of constraints to be applied on path |
| 35 | * @param lspType type of path to be setup |
| 36 | * @return false on failure and true on successful path creation |
| 37 | */ |
| 38 | boolean setupPath(DeviceId src, DeviceId dst, List<Constraint> constraints, LspType lspType); |
| 39 | |
| 40 | //TODO: updatePath |
| 41 | //TODO: releasePath |
| 42 | //TODO: queryPath |
| 43 | } |