diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:44 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:44 +0000 |
commit | 8105a71426a39c59640529e59dabe4cae31a3c62 (patch) | |
tree | 44d93bdc54ab402614af3d8733963aebed8cf1ff | |
parent | 2e998a74933a039aa12bb9ce70f5a27d07bcc1cf (diff) | |
download | acf-iproute2-qos-8105a71426a39c59640529e59dabe4cae31a3c62.tar.bz2 acf-iproute2-qos-8105a71426a39c59640529e59dabe4cae31a3c62.tar.xz |
Updated for handle_form now passing self to get and set functions
-rw-r--r-- | qos-model.lua | 10 |
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 |