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:
@@ -7,16 +7,6 @@ from oxi.interfaces.base import BaseDevice
|
||||
class Mikrotik(BaseDevice):
|
||||
template = "mikrotik.ttp"
|
||||
|
||||
# def system(self) -> "System":
|
||||
# systems = self._raw.get("system")
|
||||
# return System(**systems)
|
||||
|
||||
# def interfaces(self) -> "Interfaces":
|
||||
# return [Interfaces(**item) for item in self._raw.get("interfaces")]
|
||||
|
||||
# def vlans(self) -> list["Vlans"]:
|
||||
# return [Vlans(**item) for item in self._raw.get("vlans")]
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(os.path.abspath(os.curdir))
|
||||
|
||||
Reference in New Issue
Block a user