Add Qtech model and template; clean up Mikrotik model
- Introduced a new `Qtech` model with a corresponding TTP template for parsing QTECH devices. - Removed commented-out methods in the `Mikrotik` model to improve code clarity and maintainability.
This commit is contained in:
24
oxi/interfaces/models/templates/qtech.ttp
Normal file
24
oxi/interfaces/models/templates/qtech.ttp
Normal file
@@ -0,0 +1,24 @@
|
||||
<doc>
|
||||
</doc>
|
||||
<vars>
|
||||
default_system = {
|
||||
"model": "",
|
||||
"serial_number": ""
|
||||
}
|
||||
</vars>
|
||||
|
||||
<group name="system">
|
||||
! {{ model }} Series Software, Version {{ bootrom_ver }} Build {{ version }}, {{ ignore }}
|
||||
! Serial num:{{ serial_number }}, {{ ignore }}
|
||||
</group>
|
||||
|
||||
<group name="interfaces">
|
||||
interface {{ interface }}
|
||||
description {{ description | ORPHRASE }}
|
||||
ip address {{ ip_address }} {{ netmask }}
|
||||
</group>
|
||||
|
||||
<group name="vlans">
|
||||
vlan {{ vlan_id }}
|
||||
name {{ name }}
|
||||
</group>
|
||||
Reference in New Issue
Block a user