Update Qtech:
- Add full support of diff types of switches - Fix default system parser
This commit is contained in:
@@ -7,6 +7,10 @@ from oxi.interfaces.base import BaseDevice
|
||||
class Qtech(BaseDevice):
|
||||
template = "qtech.ttp"
|
||||
|
||||
def system(self) -> dict:
|
||||
system = self.raw["system"]
|
||||
return system
|
||||
|
||||
def vlans(self) -> list[dict]:
|
||||
vlans_ttp = self.raw["vlans"]
|
||||
vlans = []
|
||||
|
||||
@@ -9,8 +9,13 @@ default_system = {
|
||||
</vars>
|
||||
|
||||
<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('.*') }}
|
||||
|
||||
! 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 name="interfaces">
|
||||
|
||||
Reference in New Issue
Block a user