aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-24 21:14:23 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-24 21:14:23 +0100
commitf0a12faa1dceb7c21e1688164342aa58e8f136f2 (patch)
treeb21fdb2e4c6de85ab2563a9686da82fdd7a490fc
parent7c6589dd177deaba473fdde3fd48c283f5e369bc (diff)
NMS: Fix et-interfaces in both locations
-rwxr-xr-xweb/nms.gathering.org/api/public/switch-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/public/switch-state b/web/nms.gathering.org/api/public/switch-state
index 62e497c..0e28cfd 100755
--- a/web/nms.gathering.org/api/public/switch-state
+++ b/web/nms.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'};