Enhance Keenetic model and update templates for improved data handling

- Implemented the `interfaces` and `vlans` methods in the `Keenetic` model to process and decode interface and VLAN data.
- Added a `_decode_utf` method to handle UTF-8 encoded descriptions.
- Updated the Keenetic TTP template to define structured groups for system, interfaces, and VLANs.
- Refactored file paths in the `Mikrotik` model for consistency and clarity.
This commit is contained in:
IluaAir
2026-02-22 00:21:55 +03:00
parent a41cb1f7ec
commit 2394296f5b
5 changed files with 85 additions and 11 deletions

View File

@@ -106,7 +106,7 @@ class BaseDevice(ABC):
raise ValueError(
f"{self.__class__.__name__}: TTP template '{self.template}' "
f"did not produce required sections: {sorted(missing)}. "
f"Got: {sorted(raw.keys())}"
f"Got: {(raw.keys())}"
)
return raw