summaryrefslogtreecommitdiffstats
path: root/bgp-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bgp-controller.lua')
-rw-r--r--bgp-controller.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/bgp-controller.lua b/bgp-controller.lua
index dfe27e2..15d7658 100644
--- a/bgp-controller.lua
+++ b/bgp-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 expert(self)
- return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit BGP Config", "BGP Configuration Saved")
+ return self.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit BGP Config", "BGP Configuration Saved")
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