Skip to content

Commit

Permalink
switched ifType of certain ekinops interfaces to "fibreChannel"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed Feb 26, 2021
1 parent f83d565 commit f5163f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/communicator/ekinops.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ func normalizeEkinopsInterfaces(interfaces []device.Interface) ([]device.Interfa
return nil, fmt.Errorf("no IfDescr set for interface ifIndex: `%d`", *interf.IfIndex)
}

// change ifType of ports of slots > 1 to "LWL" if ifType equals "other"
// change ifType of ports of slots > 1 to "fibreChannel" if ifType equals "other"
slotNumber := strings.Split(*interf.IfName, "/")[2]
if !(slotNumber == "0" || slotNumber == "1") {
if interf.IfType == nil || *interf.IfType == "other" {
lwl := "LWL"
interf.IfType = &lwl
fibreChannel := "fibreChannel"
interf.IfType = &fibreChannel
}
}

Expand Down

0 comments on commit f5163f1

Please sign in to comment.