New leaf >is-statistics-polling-off< was added to
openflow-plugin-impl.yang. Now it is possible to set statistic
gathering (ON|OFF) via configuration of 42-openflowplugin-new.xml -
add <is-statistics-polling-off>true|false</is-statistics-polling-off>
xml element to
configuration/data/modules/module/name=openflow-plugin-provider-impl
Change-Id: I3f8a8cee35f389a8804bb0234c61de686b5273a4
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
boolean isSwitchFeaturesMandatory();
boolean isSwitchFeaturesMandatory();
+ boolean isStatisticsPollingOff();
+ void setIsStatisticsPollingOff(final boolean isStatisticsPollingOff);
<rpc-requests-quota>20000</rpc-requests-quota>
<switch-features-mandatory>false</switch-features-mandatory>
<global-notification-quota>64000</global-notification-quota>
<rpc-requests-quota>20000</rpc-requests-quota>
<switch-features-mandatory>false</switch-features-mandatory>
<global-notification-quota>64000</global-notification-quota>
+ <is-statistics-polling-off>false</is-statistics-polling-off>
private OfpRole role;
private Collection<SwitchConnectionProvider> switchConnectionProviders;
private boolean switchFeaturesMandatory = false;
private OfpRole role;
private Collection<SwitchConnectionProvider> switchConnectionProviders;
private boolean switchFeaturesMandatory = false;
+ private boolean isStatisticsPollingOff = false;
public OpenFlowPluginProviderImpl(final long rpcRequestsQuota, final Long globalNotificationQuota) {
Preconditions.checkArgument(rpcRequestsQuota > 0 && rpcRequestsQuota <= Integer.MAX_VALUE, "rpcRequestQuota has to be in range <1,%s>", Integer.MAX_VALUE);
public OpenFlowPluginProviderImpl(final long rpcRequestsQuota, final Long globalNotificationQuota) {
Preconditions.checkArgument(rpcRequestsQuota > 0 && rpcRequestsQuota <= Integer.MAX_VALUE, "rpcRequestQuota has to be in range <1,%s>", Integer.MAX_VALUE);
this.globalNotificationQuota = Preconditions.checkNotNull(globalNotificationQuota);
}
this.globalNotificationQuota = Preconditions.checkNotNull(globalNotificationQuota);
}
+ @Override
+ public boolean isStatisticsPollingOff() {
+ return isStatisticsPollingOff;
+ }
+
+ @Override
+ public void setIsStatisticsPollingOff(final boolean isStatisticsPollingOff) {
+ this.isStatisticsPollingOff = isStatisticsPollingOff;
+ }
private void startSwitchConnections() {
final List<ListenableFuture<Boolean>> starterChain = new ArrayList<>(switchConnectionProviders.size());
private void startSwitchConnections() {
final List<ListenableFuture<Boolean>> starterChain = new ArrayList<>(switchConnectionProviders.size());
openflowPluginProvider.setNotificationProviderService(getNotificationAdapterDependency());
openflowPluginProvider.setNotificationPublishService(getNotificationPublishAdapterDependency());
openflowPluginProvider.setSwitchFeaturesMandatory(getSwitchFeaturesMandatory());
openflowPluginProvider.setNotificationProviderService(getNotificationAdapterDependency());
openflowPluginProvider.setNotificationPublishService(getNotificationPublishAdapterDependency());
openflowPluginProvider.setSwitchFeaturesMandatory(getSwitchFeaturesMandatory());
+ openflowPluginProvider.setIsStatisticsPollingOff(getIsStatisticsPollingOff());
openflowPluginProvider.initialize();
return openflowPluginProvider;
openflowPluginProvider.initialize();
return openflowPluginProvider;
type uint32;
default 131072;
}
type uint32;
default 131072;
}
+ leaf is-statistics-polling-off {
+ type boolean;
+ default "false";
+ }