blob: 57c1be279efd57448e56d18b4cab12b5d49c8763 [file] [log] [blame]
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +02001/*
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
17package org.onosproject.sdxl2;
18
pierventre3849e562016-05-11 11:47:32 +020019import java.util.Optional;
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020020import java.util.Set;
21
22/**
pierventre3849e562016-05-11 11:47:32 +020023 * Service that allows to create virtual named sdx-l2s
24 * in which is possible to provide connectivity
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020025 * (layer 2 Virtual Circuits - VC) between edge ports.
26 */
27public interface SdxL2Service {
28
29 /**
pierventre3849e562016-05-11 11:47:32 +020030 * Creates a named SDX-L2.
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020031 *
pierventre3849e562016-05-11 11:47:32 +020032 * @param sdxl2 SDX-L2 name
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020033 */
34 void createSdxL2(String sdxl2);
35
36 /**
pierventre3849e562016-05-11 11:47:32 +020037 * Deletes a named SDX-L2.
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020038 *
pierventre3849e562016-05-11 11:47:32 +020039 * @param sdxl2 SDX-L2 name
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020040 */
41 void deleteSdxL2(String sdxl2);
42
43 /**
pierventre3849e562016-05-11 11:47:32 +020044 * Returns a set of SDX-L2 names.
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020045 *
pierventre3849e562016-05-11 11:47:32 +020046 * @return a set of SDX-L2 names
Pier Luigi Ventre0a023f42016-04-30 11:03:15 +020047 */
48 Set<String> getSdxL2s();
49
pierventre3849e562016-05-11 11:47:32 +020050 /**
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 Ventre0a023f42016-04-30 11:03:15 +020073}