Update project description and enhance documentation for clarity

- Revised the project description in `pyproject.toml` to better reflect the functionality of the `oxipy` client.
- Improved the README.md by adding detailed explanations of the project structure, installation instructions, and usage examples.
- Updated documentation files to enhance clarity and organization, including sections on extending models and writing TTP templates.
- Adjusted various TTP templates to ensure consistency and accuracy in the parsing of device configurations.
This commit is contained in:
IluaAir
2026-05-25 16:01:38 +03:00
parent e8c33b0e64
commit 41c4cc48e9
17 changed files with 524 additions and 642 deletions

View File

@@ -6,9 +6,9 @@ class Quasar(BaseDevice):
template = "quasar.ttp"
def interfaces(self) -> list[dict]:
ether_interfaces: dict = self.raw["interfaces"]
ether_interface: dict = self.raw.get("interfaces", {})
interfaces: list[dict] = []
bulk_interfaces: dict = self.raw["bulkinterfaces"]
bulk_interfaces: dict = self.raw.get("bulkinterfaces", {})
for key, value in bulk_interfaces.items():
interfaces.append(
{
@@ -18,7 +18,8 @@ class Quasar(BaseDevice):
"mask": value.get("mask"),
}
)
interfaces.append(ether_interfaces)
if ether_interface:
interfaces.append(ether_interface)
return interfaces