From 2fb09eb0dee06e74f94b6def6493066214c5f4a9 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Thu, 4 Sep 2008 15:13:00 +0000 Subject: Split Bgp and Zebra into separate controllers. Earlier there was no chance to start/stop zebra (only bgp) and the whole package was a strange mix of bgp and zebra. Now these processes has own Menuitems and are controlled separately (they both exist in acf-quagga though). git-svn-id: svn://svn.alpinelinux.org/acf/quagga/trunk@1447 ab2d0c66-481e-0410-8bed-d214d4d58bed --- quagga-controller.lua | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 quagga-controller.lua (limited to 'quagga-controller.lua') diff --git a/quagga-controller.lua b/quagga-controller.lua deleted file mode 100644 index e2bb4b3..0000000 --- a/quagga-controller.lua +++ /dev/null @@ -1,30 +0,0 @@ -module(..., package.seeall) - --- Load libraries -require("controllerfunctions") - -default_action = "status" - -function status(self) - return self.model.getstatus() -end - -function startstop(self) - return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata) -end - -function expert(self) - return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Quagga Config", "Quagga Configuration Saved") -end - -function bgpstatus(self) - return self.model.getbgpstatus() -end - -function bgpstartstop(self) - return controllerfunctions.handle_startstop(self, self.model.bgpstartstop_service, self.model.getbgpstatus, self.clientdata) -end - -function bgpexpert(self) - return controllerfunctions.handle_form(self, self.model.getbgpconfigfile, self.model.setbgpconfigfile, self.clientdata, "Save", "Edit BGP Config", "BGP Configuration Saved") -end -- cgit v1.2.3