projects
/
dell-switch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfe6a7d
)
remove interface
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 19 Aug 2022 07:24:17 +0000
(09:24 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 20 Aug 2022 10:42:13 +0000
(12:42 +0200)
filter_neighbours
patch
|
blob
|
history
diff --git
a/filter_neighbours
b/filter_neighbours
index
c3bdf23
..
767be25
100755
(executable)
--- a/
filter_neighbours
+++ b/
filter_neighbours
@@
-15,6
+15,7
@@
while(<$n_fh>) {
chomp;
my @v = split(/\t/,$_);
my ($sw,$port) = @v;
+ $port =~ s{,bridge.*}{}; # remove interface
$port =~ s{\D+}{};
$neighbours{$sw}{$port} = \@v;
}