From a9ce76bd1b7ef2097b338e62c3ce8f30dd1b269e Mon Sep 17 00:00:00 2001 From: Digimer Date: Thu, 15 Jul 2021 12:19:57 -0400 Subject: [PATCH] * Finished fixing the scan-network interface to bridge mapping problem. Signed-off-by: Digimer --- scancore-agents/scan-network/scan-network | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scancore-agents/scan-network/scan-network b/scancore-agents/scan-network/scan-network index f2a78f59..176d1332 100755 --- a/scancore-agents/scan-network/scan-network +++ b/scancore-agents/scan-network/scan-network @@ -1348,11 +1348,11 @@ sub check_interfaces $new_bond_uuid = $anvil->data->{bonds}{name_to_uuid}{$new_bond_name}; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { new_bond_uuid => $new_bond_uuid }}); } - if (($new_bridge_name) && (exists $anvil->data->{interface_to_bridge}{$new_bridge_name})) + if (exists $anvil->data->{interface_to_bridge}{$network_interface_name}) { - # This bond is on a bridge + # This interface is on a bridge $new_bridge_name = $anvil->data->{interface_to_bridge}{$network_interface_name}; - $new_bridge_uuid = $anvil->data->{bridges}{name_to_uuid}{$network_interface_name}; + $new_bridge_uuid = $anvil->data->{bridges}{name_to_uuid}{$new_bridge_name}; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { new_bridge_name => $new_bridge_name, new_bridge_uuid => $new_bridge_uuid,