Fixed allocations command to print Bandwidth allocations.

Change-Id: Iaeb67266a22b1ef0a13133845c4c6626116e26f0
This commit is contained in:
Naoki Shiota 2016-03-31 18:46:49 -07:00 committed by Gerrit Code Review
parent 0b92073bab
commit d7654d4851

View File

@ -30,6 +30,7 @@ import org.apache.karaf.shell.commands.Command;
import org.apache.karaf.shell.commands.Option; import org.apache.karaf.shell.commands.Option;
import org.onlab.packet.MplsLabel; import org.onlab.packet.MplsLabel;
import org.onlab.packet.VlanId; import org.onlab.packet.VlanId;
import org.onlab.util.Bandwidth;
import org.onosproject.cli.AbstractShellCommand; import org.onosproject.cli.AbstractShellCommand;
import org.onosproject.net.Device; import org.onosproject.net.Device;
import org.onosproject.net.DeviceId; import org.onosproject.net.DeviceId;
@ -134,6 +135,7 @@ public class AllocationsCommand extends AbstractShellCommand {
.add(OchSignal.class) .add(OchSignal.class)
.add(VlanId.class) .add(VlanId.class)
.add(MplsLabel.class) .add(MplsLabel.class)
.add(Bandwidth.class)
.build(); .build();
DiscreteResourceId resourceId = Resources.discrete(did, num).id(); DiscreteResourceId resourceId = Resources.discrete(did, num).id();