mirror of
https://github.com/Telecominfraproject/wlan-ucentral-schema.git
synced 2026-01-27 10:23:38 +00:00
With this addition, a desired password can be configured through ucentral config Signed-off-by: Venkat Chimata <venkata@shasta.cloud>
23 lines
608 B
Ucode
23 lines
608 B
Ucode
|
|
# Basic unit configuration
|
|
{% if (unit.name): %}
|
|
set system.@system[-1].description={{ s(unit.name) }}
|
|
{% endif %}
|
|
{% if (unit.hostname): %}
|
|
set system.@system[-1].hostname={{ s(unit.hostname) }}
|
|
{% endif %}
|
|
{% if (unit.location): %}
|
|
set system.@system[-1].notes={{ s(unit.location) }}
|
|
{% endif %}
|
|
{% if (unit.timezone): %}
|
|
set system.@system[-1].timezone={{ s(unit.timezone) }}
|
|
{% endif %}
|
|
set system.@system[-1].leds_off={{ b(!unit.leds_active) }}
|
|
{%
|
|
if (unit.system_password)
|
|
shell.system_password(unit.system_password);
|
|
else
|
|
shell.password(unit.random_password);
|
|
services.set_enabled("led", true);
|
|
%}
|