summaryrefslogtreecommitdiffstats
path: root/config/templates/ciscoata-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/ciscoata-template.lua')
-rw-r--r--config/templates/ciscoata-template.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/templates/ciscoata-template.lua b/config/templates/ciscoata-template.lua
index de91065..f91e840 100644
--- a/config/templates/ciscoata-template.lua
+++ b/config/templates/ciscoata-template.lua
@@ -58,14 +58,18 @@ end
<%
-- Device parameters
-xml_elem("Web_Login_Admin_Passwd", values.device.adminpassword, "na")
+xml_elem("Web_Login_Admin_Password", values.device.adminpassword, "na")
xml_elem("Web_Login_Guest_Password", values.device.adminpassword, "na")
xml_elem("IVR_Admin_Password", values.device.adminpassword, "na")
%>
<Time_Setup>
<%
-xml_elem("Time_Server", values.device.sntpserver, "na")
+if values.device.sntpserver then
+ xml_elem("Time_Server_Mode", "manual", "na")
+ xml_elem("Time_Server", values.device.sntpserver, "na")
+end
+
-- Handle Time Zone parameter
-- See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
-- TZ variable, with no leading colon