From d6eafba762456f756998d2dbd81471278b96989b Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Sun, 26 Jan 2014 10:15:32 -0500 Subject: [PATCH] Clean up for OUI abbreviation of HP --- Netdisco/bin/netdisco-deploy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Netdisco/bin/netdisco-deploy b/Netdisco/bin/netdisco-deploy index 0fb189d4..3ef616c7 100755 --- a/Netdisco/bin/netdisco-deploy +++ b/Netdisco/bin/netdisco-deploy @@ -219,6 +219,9 @@ sub shorten { # Remove all spaces $manuf =~ s/\s+//g; + # Deviating from make-manuf for HP + $manuf =~ s/Hewlett[-]?Packard/Hp/; + # Truncate all names to a reasonable length, say, 8 characters. # If the string contains UTF-8, this may be substantially more than 8 bytes. $manuf = substr( $manuf, 0, 8 );