From b9ed21ea41a3da732611037721692152c7821b35 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 19 Oct 2013 20:47:35 +0100 Subject: [PATCH] Ports with active nodes are set to be "up" immediately (closes #9) --- Netdisco/Changes | 4 ++++ Netdisco/lib/App/Netdisco/Core/Macsuck.pm | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Netdisco/Changes b/Netdisco/Changes index 588ba8c8..5c4a71e2 100644 --- a/Netdisco/Changes +++ b/Netdisco/Changes @@ -1,5 +1,9 @@ 2.018001 - + [ENHANCEMENTS] + + * Ports with active nodes are set to be "up" immediately (closes #9) + [BUG FIXES] * Update Print media CSS to handle new UI components diff --git a/Netdisco/lib/App/Netdisco/Core/Macsuck.pm b/Netdisco/lib/App/Netdisco/Core/Macsuck.pm index 35838efa..29eed68e 100644 --- a/Netdisco/lib/App/Netdisco/Core/Macsuck.pm +++ b/Netdisco/lib/App/Netdisco/Core/Macsuck.pm @@ -94,6 +94,9 @@ sub do_macsuck { $device->ip, $port, $vlan, scalar keys %{ $fwtable->{$vlan}->{$port} }; foreach my $mac (keys %{ $fwtable->{$vlan}->{$port} }) { + # make sure this port is UP in netdisco + $device_ports->{$port}->update({up_admin => 'up', up => 'up'}); + # get VLAN from Q-BRIDGE if available $vlan = $fwtable->{$vlan}->{$port}->{$mac} if $vlan == 0;