harmony/examples/opnsense
Ian Letourneau c80ede706b fix(host_network): adjust bond & port-channel configuration (partial) (#175)
## Description
* Replace the CatalogSource approach to install the OperatorHub.io catalog by a more simple & straightforward way to install NMState
* Improve logging
* Add report summarizing the host network configuration that was applied (which host, bonds, port-channels)
* Fix command to find next available port channel id

## Extra info
Using the `apply_url` approach to install the NMState operator isn't the best approach: it's harder to maintain and upgrade. But it helps us achieve waht we wanted for now: install the NMState Operator to configure bonds on a host.

The preferred approach, installing an operator from the OperatorHub.io catalog, didn't work for now. We had a timeout error with DeadlineExceeded probably caused by an insufficient CPU/Memory allocation to query such a big catalog, even though we tweaked the RAM allocation (we couldn't find a way to do it for CPU).

Spent too much time on this so we stopped these efforts for now. It would be good to get back to it when we need to install something else from a custom catalog.

Reviewed-on: https://git.nationtech.io/NationTech/harmony/pulls/175
2025-10-29 17:09:16 +00:00
..
src fix(host_network): adjust bond & port-channel configuration (partial) (#175) 2025-10-29 17:09:16 +00:00
Cargo.toml fix(ha_cluster): inject switch client for better testability 2025-10-22 15:12:53 -04:00
README.md chore: Reorganize file tree for easier onboarding. Rust project now at the root for simple git clone && cargo run 2025-02-12 15:32:59 -05:00

OPNSense demo

Download the virtualbox snapshot from {{TODO URL}}

Start the virtualbox image

This virtualbox image is configured to use a bridge on the host's physical interface, make sure the bridge is up and the virtual machine can reach internet.

Credentials are opnsense default (root/opnsense)

Run the project with the correct ip address on the command line :

cargo run -p example-opnsense -- 192.168.5.229