blob: b7fd072590ba54db88cb5b8b34307bc592e9f937 [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Thomas Vachuska52f2cd12018-11-08 21:20:04 -08002 * Copyright 2018-present Open Networking Foundation
Thomas Vachuska58de4162015-09-10 16:15:33 -07003 *
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 */
Brian O'Connor6de2e202015-05-21 14:30:41 -070016package org.onosproject.incubator.net.resource.label;
jccfff0de92015-03-28 01:40:08 -070017
Brian O'Connor893b9222015-06-25 15:07:04 -040018import com.google.common.annotations.Beta;
jccfff0de92015-03-28 01:40:08 -070019import org.onosproject.net.DeviceId;
20import org.onosproject.net.provider.ProviderService;
21
22/**
23 * Means for injecting label information into the core.
24 */
Brian O'Connor893b9222015-06-25 15:07:04 -040025@Beta
jccfff0de92015-03-28 01:40:08 -070026public interface LabelResourceProviderService extends ProviderService<LabelResourceProvider> {
27
28 /**
29 * Signals that a device label resource pool has been detected.
30 * @param deviceId device identifier
31 * @param beginLabel the begin label number of resource
32 * @param endLabel the end label number of resource
33 */
34 void deviceLabelResourcePoolDetected(DeviceId deviceId,
35 LabelResourceId beginLabel,
36 LabelResourceId endLabel);
37
38 /**
39 * Signals that an label resource pool has been destroyed.
40 * @param deviceId device identifier
41 */
42 void deviceLabelResourcePoolDestroyed(DeviceId deviceId);
43}