diff --git a/oxi/interfaces/models/qtech.py b/oxi/interfaces/models/qtech.py
index 793713f..e2e9749 100644
--- a/oxi/interfaces/models/qtech.py
+++ b/oxi/interfaces/models/qtech.py
@@ -8,17 +8,6 @@ from oxi.interfaces.base import BaseDevice
class Qtech(BaseDevice):
template = "qtech.ttp"
- def interfaces(self) -> list[dict]:
- interfaces_ttp = self.raw["interfaces"]
- for item in interfaces_ttp:
- if item.get("ip_address") and item.get("netmask"):
- ipaddress = ip_interface(
- f"{item.get('ip_address')}/{item.get('netmask')}"
- )
- item["mask"] = ipaddress.network.prefixlen
- item.pop("netmask", "Key not found")
- return interfaces_ttp
-
def vlans(self) -> list[dict]:
vlans_ttp = self.raw["vlans"]
vlans = []
@@ -46,4 +35,4 @@ if __name__ == "__main__":
data = file.read()
qtech = Qtech(data)
qt = qtech.parse()
- # print(qt)
+ print(qt)
diff --git a/oxi/interfaces/models/templates/qtech.ttp b/oxi/interfaces/models/templates/qtech.ttp
index 49c7d91..6d4d86e 100644
--- a/oxi/interfaces/models/templates/qtech.ttp
+++ b/oxi/interfaces/models/templates/qtech.ttp
@@ -16,7 +16,7 @@ default_system = {
interface {{ interface }}
description {{ description | ORPHRASE }}
- ip address {{ ip_address }} {{ netmask }}
+ ip address {{ ip_address }} {{ mask | to_cidr }}