Update Qtech:

- Add full support of diff types of switches
- Fix default system parser
This commit is contained in:
i.shramko
2026-03-10 18:41:43 +03:00
parent b9dce8e417
commit 2e109db121
2 changed files with 10 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ from oxi.interfaces.base import BaseDevice
class Qtech(BaseDevice): class Qtech(BaseDevice):
template = "qtech.ttp" template = "qtech.ttp"
def system(self) -> dict:
system = self.raw["system"]
return system
def vlans(self) -> list[dict]: def vlans(self) -> list[dict]:
vlans_ttp = self.raw["vlans"] vlans_ttp = self.raw["vlans"]
vlans = [] vlans = []

View File

@@ -9,8 +9,13 @@ default_system = {
</vars> </vars>
<group name="system" default="default_system"> <group name="system" default="default_system">
! {{ model | ORPHRASE }} Series Software, Version {{ ignore }} Build {{ version | strip(",") }}{{ ignore('.*') }} ! {{ model | ORPHRASE | _start_ }} Series Software, Version {{ ignore }} Build {{ version | strip(",") }}{{ ignore('.*') }}
! Serial num:{{ serial_number | strip(",") }}{{ ignore('.*') }} ! Serial num:{{ serial_number | strip(",") }}{{ ignore('.*') }}
! System description : {{ description | PHRASE | _start_ }}({{ model }}) By {{ vendor }}
! System description : {{ description | PHRASE | _start_ }}({{ model }})
! System software version : {{ description | PHRASE }}, Release({{ version }})
! System serial number : {{ serial_number }}
</group> </group>
<group name="interfaces"> <group name="interfaces">