1 package org.onosproject.incubator.net.resource.label;
3 import com.google.common.annotations.Beta;
4 import org.onosproject.net.DeviceId;
7 * Service for managing label resource.
10 public interface LabelResourceAdminService {
12 * Creates the only label resource of some device id from begin label to end
15 * @param deviceId device identifier
16 * @param beginLabel represents for the first label id in the range of label
18 * @param endLabel represents for the last label id in the range of label
20 * @return success or fail
22 boolean createDevicePool(DeviceId deviceId, LabelResourceId beginLabel,
23 LabelResourceId endLabel);
26 * Creates the only global label resource pool.
28 * @param beginLabel represents for the first label id in the range of label
30 * @param endLabel represents for the last label id in the range of label
32 * @return success or fail
34 boolean createGlobalPool(LabelResourceId beginLabel,
35 LabelResourceId endLabel);
38 * Destroys a label resource pool of a specific device id.
40 * @param deviceId device identifier
41 * @return success or fail
43 boolean destroyDevicePool(DeviceId deviceId);
46 * Destroys the global label resource pool.
48 * @return success or fail
50 boolean destroyGlobalPool();