summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Goller <g.goller@proxmox.com>2025-09-15 11:51:52 +0200
committerThomas Lamprecht <t.lamprecht@proxmox.com>2025-09-16 09:55:27 +0200
commitba7171624e403f9ec2c2d6225af664dc3453dd93 (patch)
treef3be82394bfdf56f8e87d75a3f4545c7a2e5184a
parentea13baa9af4cff1c2dbc096a757b4c0a94afaa56 (diff)
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 <g.goller@proxmox.com> Link: https://lore.proxmox.com/20250915095154.78769-1-g.goller@proxmox.com
-rw-r--r--src/PVE/Network/SDN/Zones/Plugin.pm25
1 files changed, 0 insertions, 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) = @_;