summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qos-model.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/qos-model.lua b/qos-model.lua
index 693ab5e..029d934 100644
--- a/qos-model.lua
+++ b/qos-model.lua
@@ -52,11 +52,11 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function get_startstop(clientdata)
+function get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function startstop_service(startstop, action)
+function startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
@@ -119,8 +119,8 @@ function get_filedetails(interface)
return modelfunctions.getfiledetails(conffile.."."..interface, validate_filename)
end
-function update_filedetails(filedetails)
- return modelfunctions.setfiledetails(filedetails, validate_filename)
+function update_filedetails(self, filedetails)
+ return modelfunctions.setfiledetails(self, filedetails, validate_filename)
end
function get_config(interface)
@@ -154,7 +154,7 @@ function get_config(interface)
return cfe({ type="group", value=config, label=interface.." QOS Config" })
end
-function update_config(config)
+function update_config(self, config)
local success = false
config.value.DEV.errtxt = "Invalid device"
for i,int in ipairs(list_interfaces()) do