Rimon Ashkenazy
Committed by Gerrit Code Review

ONOS-4440 CLI allocations command: add support for TributarySlot resource allocations.

Change-Id: I845ef61054c17872d7be2bfb123c40febe649ea9
...@@ -37,6 +37,7 @@ import org.onosproject.net.DeviceId; ...@@ -37,6 +37,7 @@ import org.onosproject.net.DeviceId;
37 import org.onosproject.net.OchSignal; 37 import org.onosproject.net.OchSignal;
38 import org.onosproject.net.Port; 38 import org.onosproject.net.Port;
39 import org.onosproject.net.PortNumber; 39 import org.onosproject.net.PortNumber;
40 +import org.onosproject.net.TributarySlot;
40 import org.onosproject.net.device.DeviceService; 41 import org.onosproject.net.device.DeviceService;
41 import org.onosproject.net.intent.IntentId; 42 import org.onosproject.net.intent.IntentId;
42 import org.onosproject.net.resource.Resources; 43 import org.onosproject.net.resource.Resources;
...@@ -136,6 +137,7 @@ public class AllocationsCommand extends AbstractShellCommand { ...@@ -136,6 +137,7 @@ public class AllocationsCommand extends AbstractShellCommand {
136 .add(VlanId.class) 137 .add(VlanId.class)
137 .add(MplsLabel.class) 138 .add(MplsLabel.class)
138 .add(Bandwidth.class) 139 .add(Bandwidth.class)
140 + .add(TributarySlot.class)
139 .build(); 141 .build();
140 142
141 DiscreteResourceId resourceId = Resources.discrete(did, num).id(); 143 DiscreteResourceId resourceId = Resources.discrete(did, num).id();
......