diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-10-10 15:24:51 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-10-10 15:24:51 +0000 |
commit | 6e029cd625261b77c94cdf3c38139a7d0fc381c4 (patch) | |
tree | fb0bfb84215f86f0a6547adb3b90c7ca2316abf7 /provisioning-templated.lsp | |
parent | a47f82e3b84e6757501d1cec6a78870dc6c459c0 (diff) | |
download | acf-provisioning-6e029cd625261b77c94cdf3c38139a7d0fc381c4.tar.bz2 acf-provisioning-6e029cd625261b77c94cdf3c38139a7d0fc381c4.tar.xz |
Added viewclassparams, getfile, and putfile actions plus determine_class.lua script and provisioning_requests table.
viewclassparams shows the parameters and default values for a class
getfile is used to get the config file for a known device and a default config file for unconfigured devices
putfile is unimplemented, but will be used for parsing files uploaded to the server
determine_class.lua determines which device class best matches an unconfigured device (by agent)
provisioning_requests table will track the last request (ip, agent, and timestamp) for each device
Diffstat (limited to 'provisioning-templated.lsp')
-rw-r--r-- | provisioning-templated.lsp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/provisioning-templated.lsp b/provisioning-templated.lsp new file mode 100644 index 0000000..0cc624a --- /dev/null +++ b/provisioning-templated.lsp @@ -0,0 +1,8 @@ +<% local data, viewlibrary, page_info = ... %> + +<% +if not data.errtxt and data.value.values and data.value.values.value.device and data.value.values.value.device.template then + local func = haserl.loadfile(data.value.values.value.device.template) + func(data.value.values.value) +end +%> |