From 6c38a0c60eaed72bee275bfe23d0783d8b6add4f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 18 Apr 2012 01:53:16 +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 --- ospf-model.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ospf-model.lua') diff --git a/ospf-model.lua b/ospf-model.lua index 67ff868..55154f3 100644 --- a/ospf-model.lua +++ b/ospf-model.lua @@ -2,7 +2,7 @@ module(..., package.seeall) -- Load libraries require("modelfunctions") -require("format") +format = require("acf.format") -- Set variables local path="PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin " @@ -57,8 +57,12 @@ 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() -- cgit v1.2.3