diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:43 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-28 12:17:43 +0000 |
commit | 7dbdadef32c75b6693825b8bacc348c63d11c0ab (patch) | |
tree | 947bd02928d8a9174190f69dbede2506638dcd32 | |
parent | 6c38a0c60eaed72bee275bfe23d0783d8b6add4f (diff) | |
download | acf-quagga-7dbdadef32c75b6693825b8bacc348c63d11c0ab.tar.bz2 acf-quagga-7dbdadef32c75b6693825b8bacc348c63d11c0ab.tar.xz |
Updated for handle_form now passing self to get and set functions
-rw-r--r-- | bgp-model.lua | 8 | ||||
-rw-r--r-- | ospf-model.lua | 8 | ||||
-rw-r--r-- | zebra-model.lua | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/bgp-model.lua b/bgp-model.lua index 53ba356..467bc75 100644 --- a/bgp-model.lua +++ b/bgp-model.lua @@ -68,15 +68,15 @@ function getconfigfile() return modelfunctions.getfiledetails(configfile) end -function setconfigfile(filedetails) - return modelfunctions.setfiledetails(filedetails, {configfile}) +function setconfigfile(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end diff --git a/ospf-model.lua b/ospf-model.lua index 55154f3..ca390ce 100644 --- a/ospf-model.lua +++ b/ospf-model.lua @@ -57,11 +57,11 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -73,8 +73,8 @@ function getconfigfile() return modelfunctions.getfiledetails(configfile) end -function setconfigfile(filedetails) - return modelfunctions.setfiledetails(filedetails, {configfile}) +function setconfigfile(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end function getdetails() diff --git a/zebra-model.lua b/zebra-model.lua index f09b1a2..2581d59 100644 --- a/zebra-model.lua +++ b/zebra-model.lua @@ -60,11 +60,11 @@ end -- ################################################################################ -- PUBLIC FUNCTIONS -function get_startstop(clientdata) +function get_startstop(self, clientdata) return modelfunctions.get_startstop(processname) end -function startstop_service(startstop, action) +function startstop_service(self, startstop, action) return modelfunctions.startstop_service(startstop, action) end @@ -76,8 +76,8 @@ function getconfigfile() return modelfunctions.getfiledetails(configfile) end -function setconfigfile(filedetails) - return modelfunctions.setfiledetails(filedetails, {configfile}) +function setconfigfile(self, filedetails) + return modelfunctions.setfiledetails(self, filedetails, {configfile}) end function getdetails() |