remove interface
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 19 Aug 2022 07:24:17 +0000 (09:24 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 20 Aug 2022 10:42:13 +0000 (12:42 +0200)
filter_neighbours

index c3bdf23..767be25 100755 (executable)
@@ -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;
 }