diff options
author | skel <skeliotis@yahoo.ca> | 2011-06-30 15:13:54 -0400 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-07-05 18:55:33 -0400 |
commit | 2acea3b4c25f843f4292da4fe9eea78cf97ca736 (patch) | |
tree | c17ea21cd41f98ba21f73897f3f3078c2dcf0113 /ospf-controller.lua | |
parent | 4fa086725d176658d6991d8f88d7b7b283861767 (diff) | |
download | acf-quagga-2acea3b4c25f843f4292da4fe9eea78cf97ca736.tar.bz2 acf-quagga-2acea3b4c25f843f4292da4fe9eea78cf97ca736.tar.xz |
Interface for OSPF
Diffstat (limited to 'ospf-controller.lua')
-rwxr-xr-x | ospf-controller.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ospf-controller.lua b/ospf-controller.lua new file mode 100755 index 0000000..23b8fe3 --- /dev/null +++ b/ospf-controller.lua @@ -0,0 +1,23 @@ +module(..., package.seeall) + +-- Load libraries +require("controllerfunctions") + +default_action = "status" + +function status(self) + return self.model.getstatus() +end + +function details(self) + return self.model.getdetails() +end + +function startstop(self) + return controllerfunctions.handle_startstop(self, 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") +end + |