Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [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 | |
| 17 | package org.onosproject.sdxl2; |
| 18 | |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 19 | import java.util.Optional; |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 20 | import java.util.Set; |
| 21 | |
| 22 | /** |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 23 | * Service that allows to create virtual named sdx-l2s |
| 24 | * in which is possible to provide connectivity |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 25 | * (layer 2 Virtual Circuits - VC) between edge ports. |
| 26 | */ |
| 27 | public interface SdxL2Service { |
| 28 | |
| 29 | /** |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 30 | * Creates a named SDX-L2. |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 31 | * |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 32 | * @param sdxl2 SDX-L2 name |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 33 | */ |
| 34 | void createSdxL2(String sdxl2); |
| 35 | |
| 36 | /** |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 37 | * Deletes a named SDX-L2. |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 38 | * |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 39 | * @param sdxl2 SDX-L2 name |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 40 | */ |
| 41 | void deleteSdxL2(String sdxl2); |
| 42 | |
| 43 | /** |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 44 | * Returns a set of SDX-L2 names. |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 45 | * |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 46 | * @return a set of SDX-L2 names |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 47 | */ |
| 48 | Set<String> getSdxL2s(); |
| 49 | |
pierventre | 3849e56 | 2016-05-11 11:47:32 +0200 | [diff] [blame] | 50 | /** |
| 51 | * Adds an SDX-L2 connection point to an SDX-L2. |
| 52 | * |
| 53 | * @param sdxl2 SDX-L2 name |
| 54 | * @param sdxl2cp SDX-L2 connection point object |
| 55 | */ |
| 56 | void addSdxL2ConnectionPoint(String sdxl2, SdxL2ConnectionPoint sdxl2cp); |
| 57 | |
| 58 | /** |
| 59 | * Returns all the SDX-L2 connection points names in a SDX-L2 or all the SDX-L2 connection points names. |
| 60 | * |
| 61 | * @param sdxl2 SDX-L2 name |
| 62 | * @return a set of SDX-L2 connection points names |
| 63 | */ |
| 64 | Set<String> getSdxL2ConnectionPoints(Optional<String> sdxl2); |
| 65 | |
| 66 | /** |
| 67 | * Removes an SDX-L2 connection point from an SDX-L2. |
| 68 | * |
| 69 | * @param sdxl2cp SDX-L2 connection point name |
| 70 | */ |
| 71 | void removeSdxL2ConnectionPoint(String sdxl2cp); |
| 72 | |
Pier Luigi Ventre | 0a023f4 | 2016-04-30 11:03:15 +0200 | [diff] [blame] | 73 | } |