feat(modules/opnsense): refactor and add upgrade functionality

Refactor OPNSense module to use a mod.rs structure and add an OPNsenseLaunchUpgrade score for launching firmware upgrades.
This commit is contained in:
2025-02-21 11:23:45 -05:00
parent 0eb9e02b99
commit 62a554fac7
11 changed files with 111 additions and 14 deletions

View File

@@ -17,9 +17,9 @@ We have decided to adopt Hexagonal Architecture (also known as Ports and Adapter
2. Flexibility: The ports and adapters model allows us to easily swap or add new implementations for different hardware or protocols without affecting the core logic.
3. Testability: The architecture facilitates easier testing by allowing us to mock external dependencies through port interfaces.
3. Testability: The architecture facilitates easier testing by allowing us to mock external dependencies through port interfaces or virtualization.
4. Alignment with Project Requirements: The structure aligns well with our need to interact with various external systems (IPMI, Redfish, AMT, etc.) and our plan to use event-driven patterns with NATS.
4. Alignment with Project Requirements: The structure aligns well with our need to interact with various external systems (IPMI, Redfish, AMT, etc.) and our plan to use event-driven patterns with eg. NATS.
5. Future-proofing: As we plan to expand into day 2 operations and policy management, Hexagonal Architecture provides a clear path for growth without compromising existing structure.