H3C configuration parser.
The system group reads boot image version and board model data. The interfaces
group parses interface IP settings. The vlans groups parse both named VLANs and
range-style VLAN declarations.
default_system = {
"model": "",
"serial_number": "",
"version": ""
}
# Boot image version: {{ version }}, Release {{ release }}
# {{ mpu }} Slot {{ slot }}:
# BOARD TYPE: {{ model }}
interface {{ interface }}
ip address {{ ip_address }} {{ mask | to_cidr }}
vlan {{ vlan_id }}
name {{ name }}
description {{ description }}
vlan {{ vlans_id | ORPHRASE | contains(" to ") | unrange(" to ", ",") | split(",") }}