aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms-public.gathering.org/api/public/switch-state
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-24 21:15:50 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-24 21:15:50 +0100
commit7ac4551ed94c1f1393bc69e595a90dbe15bc8f6c (patch)
treed68fbc18f69cc33aaabec82b1092ba147a32b346 /web/nms-public.gathering.org/api/public/switch-state
parentf0a12faa1dceb7c21e1688164342aa58e8f136f2 (diff)
NMS: Update public api
Diffstat (limited to 'web/nms-public.gathering.org/api/public/switch-state')
-rwxr-xr-xweb/nms-public.gathering.org/api/public/switch-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/nms-public.gathering.org/api/public/switch-state b/web/nms-public.gathering.org/api/public/switch-state
index 62e497c..0e28cfd 100755
--- a/web/nms-public.gathering.org/api/public/switch-state
+++ b/web/nms-public.gathering.org/api/public/switch-state
@@ -59,7 +59,7 @@ while ( my $ref = $q2->fetchrow_hashref() ) {
for my $porti (keys %{$data{'ports'}}) {
my %port = %{$data{'ports'}{$porti}};
my $smallport = $porti;
- if (not $smallport =~ m/^ae/) {
+ if (not $smallport =~ m/^ae/ and not $smallport =~ m/^et/) {
$smallport =~ s/[0-9-].*$//;
} else {
$json{'then'}{$sysname}{ifs}{$smallport}{'ifAlias'} = $port{'ifAlias'};