diff options
-rw-r--r-- | dhcp-model.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/dhcp-model.lua b/dhcp-model.lua index 18a82bd..cad7ba8 100644 --- a/dhcp-model.lua +++ b/dhcp-model.lua @@ -396,11 +396,11 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -439,7 +439,7 @@ host_read = function( name ) return host end -host_update = function( host ) +host_update = function(self, host) local success, host = validate_host( host ) if not host.value.host.errtxt then local previous_success = success @@ -463,7 +463,7 @@ host_update = function( host ) return host end -host_create = function( host ) +host_create = function(self, host) local success, host = validate_host(host) if not host.value.host.errtxt then local hosts = get_hosts() @@ -598,7 +598,7 @@ subnet_read = function( name ) return net end -subnet_update = function( net ) +subnet_update = function(self, net) local success, net = validate_subnet( net ) if not net.value.subnet.errtxt then local previous_success = success @@ -622,7 +622,7 @@ subnet_update = function( net ) return net end -subnet_create = function( net ) +subnet_create = function(self, net) local success, net = validate_subnet(net) if not net.value.subnet.errtxt then local subnets = get_subnets() @@ -702,7 +702,7 @@ read_settings = function() return cfe({ type="group", value=settings, label = "Global settings" }) end -update_settings = function ( settings ) +update_settings = function (self, settings) success, settings = validate_settings(settings) if success then local file = fs.read_file(configfile) or "" @@ -785,8 +785,8 @@ getconfigfile = function(filename) return modelfunctions.getfiledetails(filename, filelist) end -setconfigfile = function(filedetails) - return modelfunctions.setfiledetails(filedetails, filelist) +setconfigfile = function(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, filelist) end getleases = function() |