-
Notifications
You must be signed in to change notification settings - Fork 24
Configuring templates
In TeamsACS, templates are rendered using golang's text/template. The variables in the template are perfectly consistent with golang template syntax
-
{{. TR069AccessAddress}} the current TeamsACS TR069 service address, like
https://www.teamsacs.cc:2999
, this address can be configured on the Setting page -
{{.TR069AccessPassword}} The current TeamsACS TR069 access authentication password, this property can be configured in the Settings page
-
{{.TeamsacsApiToken}} API Jwt Token currently provided by TeamsACS (reserved property), this property can be configured on the Settings page
-
{{CacrtContent}} the current TeamsACS TR069 Ca certificate, from the file/var/TeamsACS/private/Ca. The CRT, the variable only in
FactoryactResetConfig
available in the template -
{{.cpe}}
The property set of the delivery device is different for different cpe devices. This is the information saved in the TeamsACS system, and the property values of the device can be accessed through '{{.cpe.name}}'. The supported properties include:{{.cpe.name}}
{{.cpe.sn}}
{{.cpe.system_name}}
{{.cpe.software_version}}
{{.cpe.hardware_version}}
{{.cpe.model}}
{{.cpe.oui}}
{{.cpe.manufacturer}}
{{.cpe.product_class}}