meter-remove command accept hex values as input like meter-add and meters output.
Change-Id: I0a7baed306f5f10eddcaf576a76e53615d027882
diff --git a/cli/src/main/java/org/onosproject/cli/net/MeterRemoveCommand.java b/cli/src/main/java/org/onosproject/cli/net/MeterRemoveCommand.java
index c1b6b3f..6c63b59 100644
--- a/cli/src/main/java/org/onosproject/cli/net/MeterRemoveCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/MeterRemoveCommand.java
@@ -41,7 +41,7 @@
required = true, multiValued = false)
private String uri = null;
- @Argument(index = 1, name = "meterId", description = "Meter ID",
+ @Argument(index = 1, name = "meterId", description = "Meter ID hexadecimal value",
required = true, multiValued = false)
private String meterIdstr = null;
@@ -53,7 +53,7 @@
CoreService coreService = get(CoreService.class);
DeviceId deviceId = DeviceId.deviceId(uri);
- MeterId meterId = MeterId.meterId(Long.parseLong(meterIdstr));
+ MeterId meterId = MeterId.meterId(Long.parseLong(meterIdstr, 16));
Band b = new DefaultBand(Band.Type.DROP, 0L, 0L, (short) 0);