Huawei VRP configuration parser. The system group reads VRP version and slot ESN data. The interfaces group parses interface blocks and converts dotted decimal masks to prefix lengths. The vlans group parses `vlan batch` declarations and emits VLAN IDs. default_system = { "model": "", "serial_number": "", "version": "" } # VRP (R) software, Version {{ version }} {{ _line_ }} # ESN of slot {{ slot_number }}: {{ serial_number }} interface {{ interface }} description {{ description }} ip address {{ ip_address }} {{ mask | to_cidr }} vlan batch {{ vlan_ids | ORPHRASE | unrange(" to ", " ") | split(" ")}}