#733 strip nonprinting characters from OUI table
This commit is contained in:
1
Changes
1
Changes
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
* #733 strip nonprinting characters from OUI table
|
||||||
* #227 Do not overwrite partially retrieved data with null or incorrect vals
|
* #227 Do not overwrite partially retrieved data with null or incorrect vals
|
||||||
* #722 manual topology should not allow same left and right port/device
|
* #722 manual topology should not allow same left and right port/device
|
||||||
* #729 Discovery partially fails on invalid indexes
|
* #729 Discovery partially fails on invalid indexes
|
||||||
|
|||||||
@@ -238,6 +238,7 @@ sub deploy_oui {
|
|||||||
if ($line =~ m/^\s*(.{2}-.{2}-.{2})\s+\(hex\)\s+(.*)\s*$/i) {
|
if ($line =~ m/^\s*(.{2}-.{2}-.{2})\s+\(hex\)\s+(.*)\s*$/i) {
|
||||||
my ($oui, $company) = ($1, $2);
|
my ($oui, $company) = ($1, $2);
|
||||||
$oui =~ s/-/:/g;
|
$oui =~ s/-/:/g;
|
||||||
|
$company =~ s/[\r\n]//g;
|
||||||
my $abbrev = shorten($company);
|
my $abbrev = shorten($company);
|
||||||
$data{lc($oui)}{'company'} = $company;
|
$data{lc($oui)}{'company'} = $company;
|
||||||
$data{lc($oui)}{'abbrev'} = $abbrev;
|
$data{lc($oui)}{'abbrev'} = $abbrev;
|
||||||
|
|||||||
Reference in New Issue
Block a user