Parvathi M | ef74963 | 2016-07-07 13:30:43 -0700 | [diff] [blame] | 1 | /* |
Brian O'Connor | 0a4e674 | 2016-09-15 23:03:10 -0700 | [diff] [blame] | 2 | * Copyright 2016-present Open Networking Laboratory |
Parvathi M | ef74963 | 2016-07-07 13:30:43 -0700 | [diff] [blame] | 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 | package org.onosproject.patchpanel.impl; |
| 18 | import org.onosproject.net.ConnectPoint; |
| 19 | |
| 20 | /** |
Jonathan Hart | 382119e | 2016-09-02 13:14:49 -0700 | [diff] [blame] | 21 | * A service for the patch panel application to export and use with the cli. |
Parvathi M | ef74963 | 2016-07-07 13:30:43 -0700 | [diff] [blame] | 22 | */ |
| 23 | public interface PatchPanelService { |
| 24 | |
| 25 | /** |
Jonathan Hart | 382119e | 2016-09-02 13:14:49 -0700 | [diff] [blame] | 26 | * Adds a new patch between two connect points. |
| 27 | * |
Parvathi M | ef74963 | 2016-07-07 13:30:43 -0700 | [diff] [blame] | 28 | * @param cp the first connect point |
| 29 | * @param cp2 the second connect point |
Ray Milkey | 0bb1e10 | 2016-11-10 14:51:27 -0800 | [diff] [blame^] | 30 | * @return true if the patch was created, false otherwise |
Parvathi M | ef74963 | 2016-07-07 13:30:43 -0700 | [diff] [blame] | 31 | */ |
Jonathan Hart | 382119e | 2016-09-02 13:14:49 -0700 | [diff] [blame] | 32 | boolean addPatch(ConnectPoint cp, ConnectPoint cp2); |
| 33 | } |