summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) = @_;