blob: c7ae6b7d26102849c78342963f85b79008d3464d [file] [log] [blame]
Thomas Vachuska58de4162015-09-10 16:15:33 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-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.Annotated;
20import org.onosproject.net.DeviceId;
21import org.onosproject.net.NetworkResource;
22import org.onosproject.net.Provided;
23
24/**
25 * Representation of label resource.
26 */
Brian O'Connor893b9222015-06-25 15:07:04 -040027@Beta
jccfff0de92015-03-28 01:40:08 -070028public interface LabelResource extends Annotated, Provided, NetworkResource {
29 /**
30 * Returns device id.
31 * @return DeviceId
32 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070033 DeviceId deviceId();
jccfff0de92015-03-28 01:40:08 -070034
35 /**
Thomas Vachuskab0ca8c52015-05-21 16:41:41 -070036 * Returns label resource identifier.
37 *
38 * @return resource id
jccfff0de92015-03-28 01:40:08 -070039 */
Sho SHIMIZU3310a342015-05-13 12:14:05 -070040 LabelResourceId labelResourceId();
jccfff0de92015-03-28 01:40:08 -070041}