A list of predefined Macros variables that can be used as templates for substituting attributes in the Preset configuration.
While creating or editing Preset or Action, it is possible to click on a macros field with the left mouse button to add it to the Code field while editing Preset in the Preset or Action form.
Below is a macro variables description along with examples to help you understand how it works.
Macros list on the Action edit form
What do each macros represent?
onu.serial_number - serial number of the ONU
onu.port_interface - ONU port interface
onu.qinq_free_vlan - free qinq vlan ONU port
onu.onu_interface - ONU interface
onu_number - ONU number
onu.name - ONU name
onu_type.value - ONU type value
onu.mac_address - ONU Mac address
onu.mac_address | split "." - mac address of the current ONU, separated by the dot character
onu.mac_address | split "-" - mac address of the current ONU, separated by the dash character
vlan-smart-qinq ingress-port gpon-olt_1/12/5 cvlan 1074 to 1314 svlan 150
1075
gpon-onu_1/2/16:2
interface gpon-olt_1/5/3
no shutdown
linktrap disable
onu 1 type universal sn ZTEGC041AF2B
onu 1 profile line 1000mb remote standart
onu 3 type universal sn ZTEGC6961A2E
onu 3 profile line 1000mb remote standart
onu 4 type universal sn ZTEGC0F4D2C9
onu 4 profile line 1000mb remote standart