aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms-public.gathering.org
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-24 21:12:08 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-24 21:12:08 +0100
commit7c6589dd177deaba473fdde3fd48c283f5e369bc (patch)
tree1ba2db50af4df1f7f869ac1d44cc715d4f6296dc /web/nms-public.gathering.org
parent5ed1a58290c97371ba4e7de40f3a467c3d0b6ebe (diff)
NMS: Expose ET-interfaces and more
Diffstat (limited to 'web/nms-public.gathering.org')
-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 2fff681..62e497c 100755
--- a/web/nms-public.gathering.org/api/public/switch-state
+++ b/web/nms-public.gathering.org/api/public/switch-state
@@ -19,7 +19,7 @@ while ( my $ref = $q->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{'switches'}{$sysname}{ifs}{$smallport}{'ifAlias'} = $port{'ifAlias'};