- Revised the project description in `pyproject.toml` to better reflect the functionality of the `oxipy` client. - Improved the README.md by adding detailed explanations of the project structure, installation instructions, and usage examples. - Updated documentation files to enhance clarity and organization, including sections on extending models and writing TTP templates. - Adjusted various TTP templates to ensure consistency and accuracy in the parsing of device configurations.
29 lines
774 B
Plaintext
29 lines
774 B
Plaintext
<doc>
|
|
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.
|
|
</doc>
|
|
<vars>
|
|
default_system = {
|
|
"model": "",
|
|
"serial_number": "",
|
|
"version": ""
|
|
}
|
|
</vars>
|
|
|
|
<group name="system" default="default_system">
|
|
# VRP (R) software, Version {{ version }} {{ _line_ }}
|
|
# ESN of slot {{ slot_number }}: {{ serial_number }}
|
|
</group>
|
|
|
|
<group name="interfaces">
|
|
interface {{ interface }}
|
|
description {{ description }}
|
|
ip address {{ ip_address }} {{ mask | to_cidr }}
|
|
</group>
|
|
<group name="vlans">
|
|
vlan batch {{ vlan_ids | ORPHRASE | unrange(" to ", " ") | split(" ")}}
|
|
</group>
|