diff options
author | Kristian Lyngstol <kly@kly@.no> | 2016-03-24 21:15:50 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly@.no> | 2016-03-24 21:15:50 +0100 |
commit | 7ac4551ed94c1f1393bc69e595a90dbe15bc8f6c (patch) | |
tree | d68fbc18f69cc33aaabec82b1092ba147a32b346 /web/nms-public.gathering.org/api/public/switch-state | |
parent | f0a12faa1dceb7c21e1688164342aa58e8f136f2 (diff) |
NMS: Update public api
Diffstat (limited to 'web/nms-public.gathering.org/api/public/switch-state')
-rwxr-xr-x | web/nms-public.gathering.org/api/public/switch-state | 2 |
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'}; |