Skip to content

Configuring templates

Wang Juntao edited this page Feb 13, 2023 · 4 revisions

In TeamsACS, templates are rendered using golang's text/template. The variables in the template are perfectly consistent with golang template syntax

Template variables

  • {{. 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}}

Sample configuration