Remove main execution block from Quasar model and add configuration files for testing

- Eliminated the main execution block from the Quasar model for cleaner code.
- Introduced new configuration files `config_1.conf` and `config_2.conf` for Quasar devices, detailing interface settings and IP configurations.
- Added expected output JSON files `config_1.expected.json` and `config_2.expected.json` to validate the parsing of Quasar configurations against expected results.
This commit is contained in:
IluaAir
2026-06-07 09:12:47 +03:00
parent acb3a6291c
commit 686cd6d715
5 changed files with 236 additions and 14 deletions

View File

@@ -21,17 +21,3 @@ class Quasar(BaseDevice):
if ether_interface:
interfaces.append(ether_interface)
return interfaces
if __name__ == "__main__":
with open("./test7.txt") as file:
data = file.read()
quasar = Quasar(data)
qt = quasar.parse()
print(qt)
print()
with open("./test8.txt") as file:
data = file.read()
quasar = Quasar(data)
qt = quasar.parse()
print(qt)