Skip to content

Commit

Permalink
fix typo port type
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Nov 11, 2023
1 parent b2061b1 commit e370be7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loxinet/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ import (
"net"
"strings"

cmn "github.com/loxilb-io/loxilb/common"
tk "github.com/loxilb-io/loxilib"

cmn "github.com/loxilb-io/loxilb/common"
)

// error codes
Expand Down Expand Up @@ -710,7 +711,7 @@ func port2String(e *Port, it IterIntf) {
if e.SInfo.PortType&cmn.PortBondSif == cmn.PortBondSif {
pStr += "bond-sif,"
}
if e.SInfo.PortType&cmn.PortBondSif == cmn.PortBond {
if e.SInfo.PortType&cmn.PortBond == cmn.PortBond {
pStr += "bond,"
}
if e.SInfo.PortType&cmn.PortVxlanSif == cmn.PortVxlanSif {
Expand Down

0 comments on commit e370be7

Please sign in to comment.