aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/public/switch-state
diff options
context:
space:
mode:
Diffstat (limited to 'web/nms.gathering.org/api/public/switch-state')
-rwxr-xr-xweb/nms.gathering.org/api/public/switch-state6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/nms.gathering.org/api/public/switch-state b/web/nms.gathering.org/api/public/switch-state
index 0e28cfd..a6caea9 100755
--- a/web/nms.gathering.org/api/public/switch-state
+++ b/web/nms.gathering.org/api/public/switch-state
@@ -19,6 +19,9 @@ while ( my $ref = $q->fetchrow_hashref() ) {
for my $porti (keys %{$data{'ports'}}) {
my %port = %{$data{'ports'}{$porti}};
my $smallport = $porti;
+ if ($porti =~ m/\.0$/) {
+ next;
+ }
if (not $smallport =~ m/^ae/ and not $smallport =~ m/^et/) {
$smallport =~ s/[0-9-].*$//;
} else {
@@ -59,6 +62,9 @@ while ( my $ref = $q2->fetchrow_hashref() ) {
for my $porti (keys %{$data{'ports'}}) {
my %port = %{$data{'ports'}{$porti}};
my $smallport = $porti;
+ if ($porti =~ m/\.0$/) {
+ next;
+ }
if (not $smallport =~ m/^ae/ and not $smallport =~ m/^et/) {
$smallport =~ s/[0-9-].*$//;
} else {