From 1804387d97472d4d7151b2622d8c8f75192092de Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 18 Apr 2012 01:05:25 +0000 Subject: 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 --- dhcp-model.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'dhcp-model.lua') 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") -- cgit v1.2.3