Naoki Shiota
Committed by Gerrit Code Review

Fixed allocations command to print Bandwidth allocations.

Change-Id: Iaeb67266a22b1ef0a13133845c4c6626116e26f0
...@@ -30,6 +30,7 @@ import org.apache.karaf.shell.commands.Command; ...@@ -30,6 +30,7 @@ import org.apache.karaf.shell.commands.Command;
30 import org.apache.karaf.shell.commands.Option; 30 import org.apache.karaf.shell.commands.Option;
31 import org.onlab.packet.MplsLabel; 31 import org.onlab.packet.MplsLabel;
32 import org.onlab.packet.VlanId; 32 import org.onlab.packet.VlanId;
33 +import org.onlab.util.Bandwidth;
33 import org.onosproject.cli.AbstractShellCommand; 34 import org.onosproject.cli.AbstractShellCommand;
34 import org.onosproject.net.Device; 35 import org.onosproject.net.Device;
35 import org.onosproject.net.DeviceId; 36 import org.onosproject.net.DeviceId;
...@@ -134,6 +135,7 @@ public class AllocationsCommand extends AbstractShellCommand { ...@@ -134,6 +135,7 @@ public class AllocationsCommand extends AbstractShellCommand {
134 .add(OchSignal.class) 135 .add(OchSignal.class)
135 .add(VlanId.class) 136 .add(VlanId.class)
136 .add(MplsLabel.class) 137 .add(MplsLabel.class)
138 + .add(Bandwidth.class)
137 .build(); 139 .build();
138 140
139 DiscreteResourceId resourceId = Resources.discrete(did, num).id(); 141 DiscreteResourceId resourceId = Resources.discrete(did, num).id();
......