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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user