From 295d3227ab0a5e0adf60f2d96d47f8d3564538fc Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 22 Apr 2018 17:29:27 +0100 Subject: [PATCH] also fix Util::Port --- lib/App/Netdisco/Util/Port.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/App/Netdisco/Util/Port.pm b/lib/App/Netdisco/Util/Port.pm index a9a990d0..62b72f8e 100644 --- a/lib/App/Netdisco/Util/Port.pm +++ b/lib/App/Netdisco/Util/Port.pm @@ -195,7 +195,7 @@ sub get_powerid { Returns true if the C<$port> L object represents a vlan subinterface. -This uses simple checks on the port I and I, and therefore might +This uses simple checks on the port I and I, and therefore might sometimes returns a false-negative result. =cut @@ -206,7 +206,7 @@ sub is_vlan_interface { my $is_vlan = (($port->type and $port->type =~ /^(53|propVirtual|l2vlan|l3ipvlan|135|136|137)$/i) or ($port->port and $port->port =~ /vlan/i) - or ($port->name and $port->name =~ /vlan/i)) ? 1 : 0; + or ($port->descr and $port->descr =~ /vlan/i)) ? 1 : 0; return $is_vlan; }