Add validation for performance tuning option
[ta/cm-plugins.git] / recuserconfighandlers / recperformanceprofileshandler / recperformanceprofileshandler.py
index d83dd4e..703d0da 100644 (file)
@@ -33,11 +33,11 @@ class recperformanceprofileshandler(cmuserconfig.CMUserConfigPlugin):
 
     def handle(self, confman):
         try:
-            self._set_default_type_for_provider_networks(confman)
+            self._set_low_latency_options(confman)
         except configerror.ConfigError as exp:
             raise cmerror.CMError(str(exp))
 
-    def set_low_latency_options(self, confman):
-        perfprofconf = self.confman.get_performance_profiles_config_handler()
+    def _set_low_latency_options(self, confman):
+        perfprofconf = confman.get_performance_profiles_config_handler()
         for profile in perfprofconf.get_performance_profiles():
             perfprofconf.set_low_latency_kcmd_options(profile, self.low_latency_options)