diff options
Diffstat (limited to 'provisioning-controller.lua')
-rw-r--r-- | provisioning-controller.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/provisioning-controller.lua b/provisioning-controller.lua index d9b4cbc..a4a49df 100644 --- a/provisioning-controller.lua +++ b/provisioning-controller.lua @@ -52,6 +52,10 @@ deleteclass = function( self ) return self:redirect_to_referrer(self.model.delete_class(self.clientdata.class_id)) end +viewclassparams = function( self ) + return self.model.get_class_params(self.clientdata.class_id) +end + listgroups = function( self ) return self.model.list_groups() end @@ -140,3 +144,11 @@ end dumpdatabase = function( self ) return controllerfunctions.handle_form(self, self.model.get_database, self.model.dump_database, self.clientdata, "Submit", "Dump Provisioning Database") end + +getfile = function( self ) + return self.model.get_file(self.clientdata.mac, self.clientdata.ip, self.clientdata.agent) +end + +putfile = function( self ) + return self.model.put_file(self.clientdata.file, self.clientdata.root, self.clientdata.data, self.clientdata.ip, self.clientdata.agent) +end |