diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:05:25 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 01:05:25 +0000 |
commit | 1804387d97472d4d7151b2622d8c8f75192092de (patch) | |
tree | b717d02ddfc0c51819c4570b1da9ce4a2a6e1895 /dhcp-model.lua | |
parent | 631b2333cf21f1ead47eb5761e06eab19ddf91b8 (diff) | |
download | acf-dhcp-1804387d97472d4d7151b2622d8c8f75192092de.tar.bz2 acf-dhcp-1804387d97472d4d7151b2622d8c8f75192092de.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 'dhcp-model.lua')
-rw-r--r-- | dhcp-model.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua index 247b6c3..18a82bd 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -4,7 +4,7 @@ module (..., package.seeall) --- get additional libraries require("modelfunctions") -require("validator") +validator = require("acf.validator") local subnet = {} local configfile = "/etc/dhcp/dhcpd.conf" @@ -396,10 +396,13 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function startstop_service(action) - return modelfunctions.startstop_service(processname, action) +function get_startstop(clientdata) + return modelfunctions.get_startstop(processname) +end + +function startstop_service(startstop, action) + return modelfunctions.startstop_service(startstop, action) end - function getstatus () return modelfunctions.getstatus(processname, packagename, "DHCP Status") |