From ba7171624e403f9ec2c2d6225af664dc3453dd93 Mon Sep 17 00:00:00 2001 From: Gabriel Goller Date: Mon, 15 Sep 2025 11:51:52 +0200 Subject: sdn: remove unused function get_uplink_iface Ripgrepped over all my local repos and didn't find an invocation. The last invocation was removed with: 938ebef7bd73 ("vlan/qinq: use bridge option instead uplink-id"). Signed-off-by: Gabriel Goller Link: https://lore.proxmox.com/20250915095154.78769-1-g.goller@proxmox.com --- src/PVE/Network/SDN/Zones/Plugin.pm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/PVE/Network/SDN/Zones/Plugin.pm b/src/PVE/Network/SDN/Zones/Plugin.pm index 83372e7..260d26c 100644 --- a/src/PVE/Network/SDN/Zones/Plugin.pm +++ b/src/PVE/Network/SDN/Zones/Plugin.pm @@ -277,31 +277,6 @@ sub del_bridge_fdb { #helper -sub get_uplink_iface { - my ($interfaces_config, $uplink) = @_; - - my $iface = undef; - foreach my $id (keys %{ $interfaces_config->{ifaces} }) { - my $interface = $interfaces_config->{ifaces}->{$id}; - if (my $iface_uplink = $interface->{'uplink-id'}) { - next if $iface_uplink ne $uplink; - if ($interface->{type} ne 'eth' && $interface->{type} ne 'bond') { - warn "uplink $uplink is not a physical or bond interface"; - next; - } - $iface = $id; - } - } - - #create a dummy uplink interface if no uplink found - if (!$iface) { - warn "can't find uplink $uplink in physical interface"; - $iface = "uplink${uplink}"; - } - - return $iface; -} - sub get_local_route_ip { my ($targetip) = @_; -- cgit v1.2.3