diff options
Diffstat (limited to 'opennhrp-controller.lua')
-rw-r--r-- | opennhrp-controller.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/opennhrp-controller.lua b/opennhrp-controller.lua index aab365d..94ea3eb 100644 --- a/opennhrp-controller.lua +++ b/opennhrp-controller.lua @@ -16,8 +16,12 @@ function startstop(self) return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) end -function config(self) - return controllerfunctions.handle_form(self, function() return self.model:getconfig() end, function(value) return self.model:setconfig(value) end, self.clientdata, "Save", "Edit Config", "Configuration Set") +function listinterfaces(self) + return self.model.listinterfaces(self) +end + +function editinterface(self) + return controllerfunctions.handle_form(self, function() return self.model.getinterfacedetails(self.clientdata.interface) end, self.model.updateinterfacedetails, self.clientdata, "Save", "Edit Interface Config", "Interface Configuration Set") end function expert (self) |