Search in sources :

Example 6 with LabelResourcePool

use of org.onosproject.incubator.net.resource.label.LabelResourcePool in project onos by opennetworkinglab.

the class GlobalLabelCommand method doExecute.

@Override
protected void doExecute() {
    LabelResourceService lrs = get(LabelResourceService.class);
    LabelResourcePool pool = lrs.getGlobalLabelResourcePool();
    if (pool != null) {
        print(FMT, pool.deviceId().toString(), pool.beginLabel(), pool.endLabel(), pool.totalNum(), pool.usedNum(), pool.currentUsedMaxLabelId(), pool.releaseLabelId().toString());
    }
}
Also used : LabelResourceService(org.onosproject.incubator.net.resource.label.LabelResourceService) LabelResourcePool(org.onosproject.incubator.net.resource.label.LabelResourcePool)

Aggregations

LabelResourcePool (org.onosproject.incubator.net.resource.label.LabelResourcePool)6 HashSet (java.util.HashSet)2 DefaultLabelResource (org.onosproject.incubator.net.resource.label.DefaultLabelResource)2 LabelResource (org.onosproject.incubator.net.resource.label.LabelResource)2 LabelResourceEvent (org.onosproject.incubator.net.resource.label.LabelResourceEvent)2 LabelResourceService (org.onosproject.incubator.net.resource.label.LabelResourceService)2 DeviceId (org.onosproject.net.DeviceId)2