summaryrefslogtreecommitdiffstats
path: root/interfaces-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces-controller.lua')
-rw-r--r--interfaces-controller.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/interfaces-controller.lua b/interfaces-controller.lua
index ad4ba05..1a33bc2 100644
--- a/interfaces-controller.lua
+++ b/interfaces-controller.lua
@@ -39,6 +39,7 @@ end
read = function (self )
local iface = self.model.get_all_interfaces()
+ local status = self.model.get_status()
-- these actions are available for each interface
-- **FIXME** This is technically wrong. The controller should pass
-- the "script" "prefix" "controller" "action" as separate fields,
@@ -47,7 +48,7 @@ read = function (self )
local actions = { link = ENV["SCRIPT_NAME"] .. self.conf.prefix ..
self.conf.controller .. "/",
action = { "create", "read", "update", "delete" } }
- return ( { actions = actions, iface = iface } )
+ return ( { actions = actions, iface = iface, status=status } )
end