summaryrefslogtreecommitdiffstats
path: root/qos-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-04-18 01:20:36 +0000
committerTed Trask <ttrask01@yahoo.com>2012-04-18 01:20:36 +0000
commit2e998a74933a039aa12bb9ce70f5a27d07bcc1cf (patch)
treef2ccbbe6fc490110ace2ac78b57f63f6d1220773 /qos-controller.lua
parent99476b8cea8eefe835582d4609b53f9bfb44be7b (diff)
downloadacf-iproute2-qos-2e998a74933a039aa12bb9ce70f5a27d07bcc1cf.tar.bz2
acf-iproute2-qos-2e998a74933a039aa12bb9ce70f5a27d07bcc1cf.tar.xz
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model) Updated startstop functionality and deleted view Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'qos-controller.lua')
-rw-r--r--qos-controller.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/qos-controller.lua b/qos-controller.lua
index c3358e8..703061a 100644
--- a/qos-controller.lua
+++ b/qos-controller.lua
@@ -1,8 +1,5 @@
module(..., package.seeall)
--- Load libraries
-require("controllerfunctions")
-
default_action = "status"
function status(self)
@@ -10,7 +7,7 @@ function status(self)
end
function startstop(self)
- return controllerfunctions.handle_startstop(self, function(action) return self.model.startstop_service(self.clientdata.init, action) end, self.clientdata)
+ return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
function details(self)
@@ -22,9 +19,9 @@ function enable(self)
end
function config(self)
- return controllerfunctions.handle_form(self, function() return self.model.get_config(self.clientdata.DEV) end, self.model.update_config, self.clientdata, "Save", "Edit QOS Config", "Configuration Set")
+ return self.handle_form(self, function() return self.model.get_config(self.clientdata.DEV) end, self.model.update_config, self.clientdata, "Save", "Edit QOS Config", "Configuration Set")
end
function expert(self)
- return controllerfunctions.handle_form(self, function() return self.model.get_filedetails(self.clientdata.interface) end, self.model.update_filedetails, self.clientdata, "Save", "Edit QOS Config", "Configuration Set")
+ return self.handle_form(self, function() return self.model.get_filedetails(self.clientdata.interface) end, self.model.update_filedetails, self.clientdata, "Save", "Edit QOS Config", "Configuration Set")
end