[SDFAB-354] Improve P4RTMeterProgrammable
Change-Id: I65a325f90a49853c6c4a1cfb8212a016a8ec2b2d
diff --git a/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMeterCellConfig.java b/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMeterCellConfig.java
index e62482b..d3da340 100644
--- a/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMeterCellConfig.java
+++ b/core/api/src/main/java/org/onosproject/net/pi/runtime/PiMeterCellConfig.java
@@ -69,19 +69,21 @@
/**
* Check if the config represents a modify operation.
+ * Or it is a non-default config read from south bound.
*
* @return true if there are exactly 2 bands
*/
- public boolean isModify() {
+ public boolean isModifyConfig() {
return piMeterBands.size() == 2;
}
/**
* Check if the config represents a reset operation.
+ * Or it is a default config read from south bound.
*
- * @return true if there is no band.
+ * @return true if there is no band
*/
- public boolean isReset() {
+ public boolean isDefaultConfig() {
return piMeterBands.isEmpty();
}