Revert "better way to construct short interface name"
This reverts commit 8bcfaf12d0.
This commit is contained in:
@@ -312,8 +312,8 @@ sub normalize_port {
|
|||||||
my $port = shift or return '';
|
my $port = shift or return '';
|
||||||
my ($start, $end) = ('', '');
|
my ($start, $end) = ('', '');
|
||||||
if ($port =~ m/^([a-z]{2})/i) { $start = $1 }
|
if ($port =~ m/^([a-z]{2})/i) { $start = $1 }
|
||||||
if ($port =~ m/[a-z]([^a-z]+)$/i) { $end = $1 }
|
($end = $port) =~ s/^\D+//;
|
||||||
return (($start && $end) ? "${start}${end}" : $port);
|
return (quotemeta($start) .'%'. quotemeta($end));
|
||||||
}
|
}
|
||||||
|
|
||||||
# take data from the topology table and update remote_ip and remote_port
|
# take data from the topology table and update remote_ip and remote_port
|
||||||
|
|||||||
Reference in New Issue
Block a user