From aa4ca704dec295e8cb9c5b78b302e8db326f750a Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 18 May 2022 16:36:41 +0100 Subject: [PATCH] also abort macsuck job for macsuck_unsupported devices --- lib/App/Netdisco/Util/Device.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/App/Netdisco/Util/Device.pm b/lib/App/Netdisco/Util/Device.pm index a09d733a..2a380a52 100644 --- a/lib/App/Netdisco/Util/Device.pm +++ b/lib/App/Netdisco/Util/Device.pm @@ -299,6 +299,9 @@ sub is_macsuckable { return _bail_msg("is_macsuckable: $device matched macsuck_no") if check_acl_no($device, 'macsuck_no'); + return _bail_msg("is_macsuckable: $device matched macsuck_unsupported") + if check_acl_no($device, 'macsuck_unsupported'); + return _bail_msg("is_macsuckable: $device failed to match macsuck_only") unless check_acl_only($device, 'macsuck_only');