diff options
Diffstat (limited to 'ospf-controller.lua')
-rw-r--r-- | ospf-controller.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ospf-controller.lua b/ospf-controller.lua index 23b8fe3..9cabb3b 100644 --- a/ospf-controller.lua +++ b/ospf-controller.lua @@ -1,8 +1,5 @@ module(..., package.seeall) --- Load libraries -require("controllerfunctions") - default_action = "status" function status(self) @@ -14,10 +11,10 @@ function details(self) end function startstop(self) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata) + return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata) end function expert(self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit OSPF Config", "OSPF Configuration Saved") + return self.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit OSPF Config", "OSPF Configuration Saved") end |