Fixed capitalization of "portStatsPollFrequency" property.
- all other properties defined in core ONOS start with lowercase letter.
Change-Id: Ia2750bef205196a621e9a37dedf2379a9de17342
diff --git a/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java b/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java
index c87c93b..3b12fdb 100644
--- a/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java
+++ b/providers/openflow/device/src/main/java/org/onosproject/provider/of/device/impl/OpenFlowDeviceProvider.java
@@ -148,8 +148,9 @@
private final InternalDeviceProvider listener = new InternalDeviceProvider();
- static final int POLL_INTERVAL = 5;
- @Property(name = "PortStatsPollFrequency", intValue = POLL_INTERVAL,
+ private static final String POLL_PROP_NAME = "portStatsPollFrequency";
+ private static final int POLL_INTERVAL = 5;
+ @Property(name = POLL_PROP_NAME, intValue = POLL_INTERVAL,
label = "Frequency (in seconds) for polling switch Port statistics")
private int portStatsPollFrequency = POLL_INTERVAL;
@@ -190,7 +191,7 @@
Dictionary<?, ?> properties = context.getProperties();
int newPortStatsPollFrequency;
try {
- String s = get(properties, "PortStatsPollFrequency");
+ String s = get(properties, POLL_PROP_NAME);
newPortStatsPollFrequency = isNullOrEmpty(s) ? portStatsPollFrequency : Integer.parseInt(s.trim());
} catch (NumberFormatException | ClassCastException e) {