refactor(host_network): extract NetworkManager as a reusable component #183

Merged
letian merged 11 commits from refactor-network-manager into master 2025-11-06 00:02:53 +00:00
10 changed files with 507 additions and 305 deletions
Showing only changes of commit 3f6c6da802 - Show all commits

View File

@@ -241,7 +241,7 @@ impl OpenShiftNmStateNetworkManager {
.and_then(|network_state| network_state.status.current_state.as_ref())
.map_or(&interfaces, |current_state| &current_state.interfaces)
.iter()
.filter(|i| i.r#type == nmstate::InterfaceType::Bond && i.link_aggregation.is_some())
.filter(|i| i.r#type == nmstate::InterfaceType::Bond)
.collect();
let used_ids: HashSet<u32> = existing_bonds