summaryrefslogtreecommitdiffstats
path: root/ospf-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ospf-model.lua')
-rw-r--r--ospf-model.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/ospf-model.lua b/ospf-model.lua
index 383050b..27d779a 100644
--- a/ospf-model.lua
+++ b/ospf-model.lua
@@ -1,4 +1,4 @@
-module(..., package.seeall)
+local mymodule = {}
-- Load libraries
modelfunctions = require("modelfunctions")
@@ -55,31 +55,31 @@ end
-- ################################################################################
-- PUBLIC FUNCTIONS
-function get_startstop(self, clientdata)
+function mymodule.get_startstop(self, clientdata)
return modelfunctions.get_startstop(processname)
end
-function startstop_service(self, startstop, action)
+function mymodule.startstop_service(self, startstop, action)
return modelfunctions.startstop_service(startstop, action)
end
-function getstatus()
+function mymodule.getstatus()
return modelfunctions.getstatus(processname, packagename, "OSPF Status")
end
-function getconfigfile()
+function mymodule.getconfigfile()
return modelfunctions.getfiledetails(configfile)
end
-function setconfigfile(self, filedetails)
+function mymodule.setconfigfile(self, filedetails)
return modelfunctions.setfiledetails(self, filedetails, {configfile})
end
-function getdetails()
+function mymodule.getdetails()
local status = {}
status.showip = cfe({ label="OSPF routes" })
status.showip.value = telnetshowip()
return cfe({ type="group", value=status, label="OSPF Details" })
end
-
+return mymodule