aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/public/switch-state
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-26 07:30:07 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-26 07:30:07 +0100
commit5755c9a0ef2d72549aa6eb281c6769c8c171421d (patch)
treef13317e4903ec7de43e6fb46b6181a5730c27016 /web/nms.gathering.org/api/public/switch-state
parent04b13311cedf90f57db5d53feea7349a008f628b (diff)
parentec0d348139403d7caba4ee4cbb99d893d8c741b8 (diff)
Merge branch 'master' of ssh://github.com/tech-server/tgmanage
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 {