Eltex configuration parser.
The system group reads software version data and the serial group extracts
serial numbers from the unit table. The interfaces group parses interface IP
settings. The vlans group supports named VLAN interfaces and compressed VLAN
lists.
default_system = {
"model": "",
"serial_number": "",
"version": ""
}
Active-image: {{ ignore }} {{ _start_ }}
! Version: {{ version }}
! Unit MAC address Hardware version Serial number
! {{ unit | exclude("-") }} {{ mac_address }} {{ hardware_version }} {{ serial_number }}
interface {{ interface | ORPHRASE }}
ip address {{ ip_address }} {{ mask | to_cidr }}
interface vlan {{ vlan_id | _start_ }}
name {{ name }}
vlan {{ _db_ | _start_ }}
vlan {{ vlan_ids | joinmatches(',') | unrange("-", ",") | split(",")}}